summaryrefslogtreecommitdiff
path: root/info.go
diff options
context:
space:
mode:
Diffstat (limited to 'info.go')
-rw-r--r--info.go15
1 files changed, 1 insertions, 14 deletions
diff --git a/info.go b/info.go
index b390062..7afbc15 100644
--- a/info.go
+++ b/info.go
@@ -1,23 +1,10 @@
package log
import (
- "os"
golanglog "log"
)
func Info(a ...any) {
+ if ! INFO { return }
golanglog.Println(a...)
}
-
-// start writing all the logging to a tmp file
-func SetTmp() {
- 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)
- }
- // 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")
-}