summaryrefslogtreecommitdiff
path: root/log/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'log/log.go')
-rw-r--r--log/log.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/log/log.go b/log/log.go
index d460539..23a6db8 100644
--- a/log/log.go
+++ b/log/log.go
@@ -19,6 +19,7 @@ package witlog
//
import (
+ "io"
"os"
"runtime"
"runtime/pprof"
@@ -152,8 +153,8 @@ func logindent(depth int, format string, a ...interface{}) {
Log(debugToolkit, newFormat, a)
}
-func SetOutput(f *os.File) {
- golog.SetOutput(f)
+func SetOutput(w io.Writer) {
+ golog.SetOutput(w)
}
func SetToolkitOutput(newLog func(...any)) {