forked from p15670423/monkey
Island: Reorder components in log statement
* Since file and function names differ wildly in length, moving the log leve right after the timestamps makes the log easier for a human being to parse. * The length of function names can vary wildly. The 10 character padding to attempt to align other parts of the log message just didn't achive its goal. It made the log harder to read and added a lot of dead space.
This commit is contained in:
parent
25369c6876
commit
353605d672
|
@ -4,9 +4,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
ISLAND_LOG_FILENAME = "monkey_island.log"
|
ISLAND_LOG_FILENAME = "monkey_island.log"
|
||||||
LOG_FORMAT = (
|
LOG_FORMAT = "%(asctime)s - %(levelname)s - %(filename)s:%(lineno)s - %(funcName)s() - %(message)s"
|
||||||
"%(asctime)s - %(filename)s:%(lineno)s - %(funcName)10s() - %(levelname)s - %(message)s"
|
|
||||||
)
|
|
||||||
FILE_MAX_BYTES = 10485760
|
FILE_MAX_BYTES = 10485760
|
||||||
FILE_BACKUP_COUNT = 20
|
FILE_BACKUP_COUNT = 20
|
||||||
FILE_ENCODING = "utf8"
|
FILE_ENCODING = "utf8"
|
||||||
|
|
Loading…
Reference in New Issue