summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2010-02-17 15:10:17 +0000
committerSol Jerome <solj@ices.utexas.edu>2010-02-17 15:10:17 +0000
commit5b89375590872f732cdf7e62c378a80b4d5dd2e9 (patch)
tree3ef480496bf52ab78a7d62a3f879de7a0d3afd06 /src/lib
parentc0211fb0f004ac3e3e63e8d453343690e747b3b9 (diff)
downloadbcfg2-5b89375590872f732cdf7e62c378a80b4d5dd2e9.tar.gz
bcfg2-5b89375590872f732cdf7e62c378a80b4d5dd2e9.tar.bz2
bcfg2-5b89375590872f732cdf7e62c378a80b4d5dd2e9.zip
Logger.py: Add timestamps when logging to file (Resolves Ticket #819)
Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5730 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Logger.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Logger.py b/src/lib/Logger.py
index de5466cd4..b41f897df 100644
--- a/src/lib/Logger.py
+++ b/src/lib/Logger.py
@@ -165,7 +165,7 @@ def setup_logging(procname, to_console=True, to_syslog=True, syslog_facility='da
if not to_file == None:
filelog = logging.FileHandler(to_file)
filelog.setLevel(logging.DEBUG)
- filelog.setFormatter(logging.Formatter('%(name)s[%(process)d]: %(message)s'))
+ filelog.setFormatter(logging.Formatter('%(asctime)s %(name)s[%(process)d]: %(message)s'))
logging.root.addHandler(filelog)
logging.root.setLevel(level)
logging.already_setup = True