-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.go
36 lines (27 loc) · 1.05 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package main
import (
"os"
"time"
"oss.terrastruct.com/util-go/cmdlog"
"oss.terrastruct.com/util-go/xos"
)
func main() {
l := cmdlog.New(xos.NewEnv(os.Environ()), os.Stderr)
l = l.WithCCPrefix("lochness")
l = l.WithCCPrefix("imgbundler")
l = l.WithCCPrefix("cache")
l.NoLevel.Println("Somehow, the world always affects you more than you affect it.")
l.SetDebug(true)
l.Debug.Println("Man is a rational animal who always loses his temper when he is called upon.")
l.SetDebug(false)
l.Debug.Println("You can never trust a woman; she may be true to you.")
l.SetTS(true)
l.Success.Println("An alcoholic is someone you don't like who drinks as much as you do.")
l.Info.Println("There once was this swami who lived above a delicatessan.")
l.SetTSFormat(time.UnixDate)
l.Warn.Println("Telephone books are like dictionaries -- if you know the answer before.")
l.SetTS(false)
l.Error.Println("Nothing can be done in one trip.")
l.Error.Println(`Good day to let down old friends who need help.
I believe in getting into hot water; it keeps you clean.`)
}