Parcourir la source

Merge branch 'master' of https://github.com/labstack/gommon

Vishal Rana il y a 10 ans
Parent
commit
0764305a9a
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      log/log.go

+ 4 - 0
log/log.go

@@ -56,6 +56,10 @@ func (l *Logger) SetLevel(v Level) {
 	l.level = v
 }
 
+func (l *Logger) Level() Level {
+	return l.level
+}
+
 func (l *Logger) SetOutput(w io.Writer) {
 	l.out = w
 	l.err = w