logzero
logzero copied to clipboard
color in filelog is in a mess
trafficstars
i guess we should split the filelogger to use another formatter that not use color, or it will be a mess.
[36m[D 210715 10:47:45 main:20][39m hello world [36m[D 210715 10:47:58 main:20][39m hello world [36m[D 210715 10:47:59 main:20][39m hello world
now i use two logger instance, one for color console output, one for file log, maybe there is another more graceful solution.
it looks like you are using default setup_logger() with default LogFormatter class had same problem
added this pull request to help fix this issue; seems to work for me https://github.com/metachris/logzero/pull/413