Show More
@@ -466,6 +466,10 b' def local_logger(logname, loglevel=logging.DEBUG):' | |||
|
466 | 466 | return |
|
467 | 467 | handler = logging.StreamHandler() |
|
468 | 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 | 473 | logger.addHandler(handler) |
|
470 | 474 | logger.setLevel(loglevel) |
|
471 | 475 | return logger |
General Comments 0
You need to be logged in to leave comments.
Login now