summaryrefslogtreecommitdiff
path: root/output.go
diff options
context:
space:
mode:
Diffstat (limited to 'output.go')
-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")
+}