logger: add SetFormat function
This commit is contained in:
parent
60d9fde890
commit
67e87adf89
@ -99,3 +99,7 @@ func E(err error) Field {
|
||||
func SetLevel(level Level) {
|
||||
defaultLogger = defaultLogger.Leveled(level)
|
||||
}
|
||||
|
||||
func SetFormat(format Format) {
|
||||
defaultLogger = Make(format, os.Stdout)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user