Permalink
Browse files

Says level on each output

  • Loading branch information...
treeder committed Nov 18, 2011
1 parent af51a17 commit 4ef4a2bec34aa4d53758cf13a80808bfcbc3e4c9
Showing with 4 additions and 4 deletions.
  1. +4 −4 golog.go
View
@@ -25,22 +25,22 @@ func NewLogger() *Logger {
func (l *Logger) Debugln(a ...interface{}) {
if l.Level <= Debug {
- log.Println(a...)
+ log.Println("DEBUG --", a...)
}
}
func (l *Logger) Infoln(a ...interface{}) {
if l.Level <= Info {
- log.Println(a...)
+ log.Println("INFO --", a...)
}
}
func (l *Logger) Warnln(a ...interface{}) {
if l.Level <= Warn {
- log.Println(a...)
+ log.Println("WARN --", a...)
}
}
func (l *Logger) Errorln(a ...interface{}) {
if l.Level <= Error {
- log.Println(a...)
+ log.Println("ERROR --", a...)
}
}

0 comments on commit 4ef4a2b

Please sign in to comment.