Skip to content

Commit

Permalink
Add timestamp in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
titom73 committed Mar 18, 2020
1 parent 43729f5 commit 71201f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

# set a format which is simpler for console use
formatter = logging.Formatter(
'%(name)-12s: %(levelname)-s - func: %(funcName)-12s (L:%(lineno)-3d) - %(message)s')
'%(asctime)s - %(name)-12s: %(levelname)-s - func: %(funcName)-12s (L:%(lineno)-3d) - %(message)s')

# set up ROOT handler to use logging with file rotation.
handler = logging.handlers.RotatingFileHandler(
Expand Down

0 comments on commit 71201f8

Please sign in to comment.