summaryrefslogtreecommitdiff
path: root/log/log.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-26 20:56:25 -0500
committerJeff Carr <[email protected]>2023-04-26 20:56:25 -0500
commite3cf42f1da9ec0ed07a7f346a0ce9c9ff10295c1 (patch)
tree0fe6fe28f11ccb3d1d6a989349071928f4a7ccb9 /log/log.go
parent5b217fa23af4e5040d5f09d9840ddc426a315960 (diff)
gocui: log() output works
Signed-off-by: Jeff Carr <[email protected]>
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)) {