Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

color in filelog is in a mess #406

Open
RonaldinhoL opened this issue Jul 15, 2021 · 2 comments
Open

color in filelog is in a mess #406

RonaldinhoL opened this issue Jul 15, 2021 · 2 comments

Comments

@RonaldinhoL
Copy link

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
Copy link
Author

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

@jturnercode
Copy link

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
#413

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants