Skip to content

Commit

Permalink
Declare logFlags constants as... const!
Browse files Browse the repository at this point in the history
  • Loading branch information
dolmen authored and bep committed Mar 11, 2016
1 parent d006540 commit 133ce31
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions thatswhyyoualwaysleaveanote.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,18 @@ var (
fatal *NotePad = &NotePad{Level: LevelFatal, Handle: os.Stdout, Logger: &FATAL, Prefix: "FATAL: "}
logThreshold Level = DefaultLogThreshold
outputThreshold Level = DefaultStdoutThreshold
)

DATE = log.Ldate
TIME = log.Ltime
SFILE = log.Lshortfile
LFILE = log.Llongfile
MSEC = log.Lmicroseconds
logFlags = DATE | TIME | SFILE
const (
DATE = log.Ldate
TIME = log.Ltime
SFILE = log.Lshortfile
LFILE = log.Llongfile
MSEC = log.Lmicroseconds
)

var logFlags = DATE | TIME | SFILE

func init() {
SetStdoutThreshold(DefaultStdoutThreshold)
}
Expand Down

0 comments on commit 133ce31

Please sign in to comment.