Selaa lähdekoodia

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

Vishal Rana 10 vuotta sitten
vanhempi
commit
0764305a9a
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  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