From 7a2dbf4b9e02c17067737a741b52dc03e6f4dbf8 2012-01-18 02:27:55 From: MinRK Date: 2012-01-18 02:27:55 Subject: [PATCH] match log format in Scheduler to rest of parallel apps --- diff --git a/IPython/parallel/util.py b/IPython/parallel/util.py index 222b49d..f5f389e 100644 --- a/IPython/parallel/util.py +++ b/IPython/parallel/util.py @@ -466,6 +466,10 @@ def local_logger(logname, loglevel=logging.DEBUG): return handler = logging.StreamHandler() handler.setLevel(loglevel) + formatter = logging.Formatter("%(asctime)s.%(msecs).03d [%(name)s] %(message)s", + datefmt="%Y-%m-%d %H:%M:%S") + handler.setFormatter(formatter) + logger.addHandler(handler) logger.setLevel(loglevel) return logger