logzero icon indicating copy to clipboard operation
logzero copied to clipboard

color in filelog is in a mess

Open RonaldinhoL opened this issue 4 years ago • 2 comments
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

RonaldinhoL avatar Jul 15 '21 02:07 RonaldinhoL

now i use two logger instance, one for color console output, one for file log, maybe there is another more graceful solution.

RonaldinhoL avatar Jul 15 '21 02:07 RonaldinhoL

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

jturnercode avatar Sep 08 '21 21:09 jturnercode