Qingshan Luo

Results 16 comments of Qingshan Luo

@d630200x Colors are only available for console terminals, files are not.

@itplayer Hooks do not prevent log output, that may require custom formatters to handle field exclusions, and you need custom writers to prevent specific log output.

@itplayer For the current status of this project, you need to wrap **io.Stdout** as another writer. When you detect nil, you can directly return, for example: ```go type YourWriter struct...

@itplayer You know the behavior of logrus from the source code, they are here: https://github.com/sirupsen/logrus/blob/f8bf7650dccb756cea26edaf9217aab85500fe07/entry.go#L242-L254 1. Trigger the hook. 2. Reset the write buffer. 3. Format log data. 4. Output...

@itplayer Yes, This is the only way currently.

@iamolegga The library is already inactive, maybe you should try another solution! Just like me.

@dgsb The part of the test failure does not seem to be caused by this patch. Can you help restart a failed test?

The part of the test that failed seems to have found an existing bug.

I really hope this feature can be merged! Feeling sleepy.