mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
Relative timestamp in logfile
This commit is contained in:
parent
592c218e59
commit
7789bc6b16
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ def setup_logger(logfile=None, debug=False):
|
|||
root.setLevel(logging.NOTSET)
|
||||
|
||||
file_handler = logging.FileHandler(logfile)
|
||||
file_handler.setFormatter(FileFormatter('[%(asctime)s] %(message)s'))
|
||||
file_handler.setFormatter(FileFormatter('[%(relativeCreated)s] %(levelname)s: %(message)s'))
|
||||
file_handler.setLevel(logging.DEBUG)
|
||||
root.addHandler(file_handler)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue