Show More
@@ -466,6 +466,10 b' def local_logger(logname, loglevel=logging.DEBUG):' | |||||
466 | return |
|
466 | return | |
467 | handler = logging.StreamHandler() |
|
467 | handler = logging.StreamHandler() | |
468 | handler.setLevel(loglevel) |
|
468 | handler.setLevel(loglevel) | |
|
469 | formatter = logging.Formatter("%(asctime)s.%(msecs).03d [%(name)s] %(message)s", | |||
|
470 | datefmt="%Y-%m-%d %H:%M:%S") | |||
|
471 | handler.setFormatter(formatter) | |||
|
472 | ||||
469 | logger.addHandler(handler) |
|
473 | logger.addHandler(handler) | |
470 | logger.setLevel(loglevel) |
|
474 | logger.setLevel(loglevel) | |
471 | return logger |
|
475 | return logger |
General Comments 0
You need to be logged in to leave comments.
Login now