]> git.parisson.com Git - telemeta.git/commitdiff
add time to transcoder logger
authorGuillaume Pellerin <yomguy@parisson.com>
Sat, 22 Jun 2013 16:02:15 +0000 (18:02 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sat, 22 Jun 2013 16:02:15 +0000 (18:02 +0200)
tools/scripts/transcode/transcode.py

index 2abc71217f978782bcafd74afc33d3a7f5ecf211..3814de4cbdd3fb9550f13dd6f629968a3ab61406 100755 (executable)
@@ -9,7 +9,7 @@ class Logger:
     def __init__(self, file):
         self.logger = logging.getLogger('myapp')
         self.hdlr = logging.FileHandler(file)
-        self.formatter = logging.Formatter('%(message)s')
+        self.formatter = logging.Formatter('%(asctime)s %(message)s')
         self.hdlr.setFormatter(self.formatter)
         self.logger.addHandler(self.hdlr)
         self.logger.setLevel(logging.INFO)