flog/settings.go
2018-05-08 17:39:09 +02:00

24 lines
266 B
Go

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
}