Permalink
Browse files

Added Warnln and Errorln

  • Loading branch information...
1 parent 9cd8f55 commit 3136df3aa65010026d6e3b7971d4f8ba5362fb6f @treeder treeder committed Nov 18, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 golog.go
View
@@ -31,3 +31,13 @@ func (l *Logger) Infoln(a ...interface{}) {
log.Println(a...)
}
}
+func (l *Logger) Warnln(a ...interface{}) {
+ if l.Level <= Warn {
+ log.Println(a...)
+ }
+}
+func (l *Logger) Errorln(a ...interface{}) {
+ if l.Level <= Error {
+ log.Println(a...)
+ }
+}

0 comments on commit 3136df3

Please sign in to comment.