diff --git a/pkg/logger/log.go b/pkg/logger/log.go index 393e4da..7e19fe8 100644 --- a/pkg/logger/log.go +++ b/pkg/logger/log.go @@ -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...) }