1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-20 20:09:11 +00:00

log: fixing file logger format

The file logger format mistakenly fixed message width to 10 chars,
whereas logger name should have been fixed and message unconstrained.
This commit is contained in:
Sergei Trofimov 2017-03-15 17:18:13 +00:00
parent 87560550d9
commit a60e8b0ba6

View File

@ -80,7 +80,7 @@ def set_level(level):
def add_file(filepath, level=logging.DEBUG,
fmt='%(asctime)s %(levelname)-8s %(name)s: %(message)-10.10s'):
fmt='%(asctime)s %(levelname)-8s %(name)10.10s: %(message)s'):
root_logger = logging.getLogger()
file_handler = logging.FileHandler(filepath)
file_handler.setLevel(level)