summaryrefslogtreecommitdiff
path: root/output.go
diff options
context:
space:
mode:
Diffstat (limited to 'output.go')
-rw-r--r--output.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/output.go b/output.go
index c52dcfc..4982f0d 100644
--- a/output.go
+++ b/output.go
@@ -13,17 +13,17 @@ import (
func SetTmpOLD() {
f, err := os.OpenFile("/tmp/guilogfile", os.O_RDWR | os.O_CREATE | os.O_APPEND, 0666)
if err != nil {
- golanglog.Fatalf("error opening file: %v", err)
+ realFatalf("error opening file: %v", err)
}
// hmm. is there a trick here or must this be in main()
// defer f.Close()
golanglog.SetOutput(f)
- golanglog.Println("This is a test log entry")
+ realPrintln("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")
+ realPrintln("This is a test log entry")
}