flog/settings.go

24 lines
266 B
Go
Raw Normal View History

2018-05-08 16:30:55 +02:00
package flog
import (
"io"
"os"
)
// Log settings
var (
MinLevel = LevelInfo
MinStackLevel = LevelError
Format LogFormatType = TextFormatter{}
Output io.Writer
)
func getOutput() io.Writer {
if Output != nil {
return Output
}
return os.Stdout
}