Skip to content

Commit

Permalink
feat: add option to set logger impl
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Jan 8, 2024
1 parent 8eff3ca commit 670ea2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions logger/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ func WithValues(keysAndValues ...interface{}) Logger {
return currentLogger.WithValues(keysAndValues...)
}

func SetLogger(logger Logger) {
currentLogger = logger
}

func StandardLogger() Logger {
return currentLogger
}
Expand Down

0 comments on commit 670ea2b

Please sign in to comment.