Browse Source

logger: add SetFormat function

extension
wpetit 2 years ago
parent
commit
67e87adf89
  1. 4
      logger/logger.go

4
logger/logger.go

@ -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…
Cancel
Save