logger: add SetFormat function

This commit is contained in:
wpetit 2020-03-17 13:37:11 +01:00
parent 60d9fde890
commit 67e87adf89

View File

@ -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)
}