chore(logger): explicitly set config of Default Logger
This commit is contained in:
		
							parent
							
								
									21e85b89d6
								
							
						
					
					
						commit
						380d105635
					
				@ -64,9 +64,10 @@ type Interface interface {
 | 
			
		||||
var (
 | 
			
		||||
	Discard = New(log.New(ioutil.Discard, "", log.LstdFlags), Config{})
 | 
			
		||||
	Default = New(log.New(os.Stdout, "\r\n", log.LstdFlags), Config{
 | 
			
		||||
		SlowThreshold: 200 * time.Millisecond,
 | 
			
		||||
		LogLevel:      Warn,
 | 
			
		||||
		Colorful:      true,
 | 
			
		||||
		SlowThreshold:             200 * time.Millisecond,
 | 
			
		||||
		LogLevel:                  Warn,
 | 
			
		||||
		IgnoreRecordNotFoundError: false,
 | 
			
		||||
		Colorful:                  true,
 | 
			
		||||
	})
 | 
			
		||||
	Recorder = traceRecorder{Interface: Default, BeginAt: time.Now()}
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user