chore(logger): explicitly set config of Default Logger (#4605)

This commit is contained in:
Sungyun Hur 2021-08-11 12:49:46 +09:00 committed by GitHub
parent 21e85b89d6
commit a83d25e25e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -64,9 +64,10 @@ type Interface interface {
var ( var (
Discard = New(log.New(ioutil.Discard, "", log.LstdFlags), Config{}) Discard = New(log.New(ioutil.Discard, "", log.LstdFlags), Config{})
Default = New(log.New(os.Stdout, "\r\n", log.LstdFlags), Config{ Default = New(log.New(os.Stdout, "\r\n", log.LstdFlags), Config{
SlowThreshold: 200 * time.Millisecond, SlowThreshold: 200 * time.Millisecond,
LogLevel: Warn, LogLevel: Warn,
Colorful: true, IgnoreRecordNotFoundError: false,
Colorful: true,
}) })
Recorder = traceRecorder{Interface: Default, BeginAt: time.Now()} Recorder = traceRecorder{Interface: Default, BeginAt: time.Now()}
) )