mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
comment update for package glog
This commit is contained in:
@ -251,6 +251,8 @@ func (l *Logger) printToWriter(ctx context.Context, input *HandlerInput) {
|
||||
// printToStdout outputs logging content to stdout.
|
||||
func (l *Logger) printToStdout(ctx context.Context, input *HandlerInput) {
|
||||
if l.config.StdoutPrint {
|
||||
// if _, err := os.Stdout.Write(input.getBuffer(true).Bytes()); err != nil {
|
||||
// For color in windows.
|
||||
if _, err := fmt.Fprintf(color.Output, input.getBuffer(true).String()); err != nil {
|
||||
intlog.Error(ctx, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user