diff --git a/context.go b/context.go index e43ca0b..feb57df 100644 --- a/context.go +++ b/context.go @@ -164,6 +164,10 @@ func SetLevel[T levelValue](level T) error { return nil } +func SetOutput(out io.Writer) { + L.Logger.SetOutput(out) +} + // GetLevel returns the current log level. func GetLevel() Level { return L.Logger.GetLevel()