add SetOutput to logger for testing convenience
This commit is contained in:
parent
51e6c01c5a
commit
4ffa7ba364
@ -4,6 +4,7 @@ package logger
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
|
||||
"git.rob.mx/nidito/chinampa/pkg/runtime"
|
||||
"github.com/sirupsen/logrus"
|
||||
@ -47,6 +48,10 @@ func Configure(name string, level Level) {
|
||||
}
|
||||
}
|
||||
|
||||
func SetOutput(out io.Writer) {
|
||||
logrus.SetOutput(out)
|
||||
}
|
||||
|
||||
func Debug(args ...any) {
|
||||
Main.Debug(args...)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user