summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-30 11:50:24 -0600
committerJeff Carr <[email protected]>2024-01-30 11:50:24 -0600
commit162d2dd85b94e6bdb1dbcecc00d6dccd63b9674f (patch)
treec5e5561f99afa07663be3c58969193f1f5612d41
parent57b20eb7d048ce0b94914b0a87e3f989f83070dc (diff)
try to restore STDOUT
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--output.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/output.go b/output.go
index 188099e..2c786da 100644
--- a/output.go
+++ b/output.go
@@ -21,3 +21,9 @@ func SetTmp() {
golanglog.SetOutput(f)
golanglog.Println("This is a test log entry")
}
+
+// start writing all the logging to a tmp file
+func UnsetTmp() {
+ golanglog.SetOutput(os.Stdout)
+ golanglog.Println("This is a test log entry")
+}