add SetOutput to logger for testing convenience

This commit is contained in:
Roberto Hidalgo 2024-06-19 17:27:47 -06:00
parent 51e6c01c5a
commit 4ffa7ba364

View File

@ -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...)
}