Browse Source

Merge pull request #3 from AlekSi/master

Add method do get current level.
Vishal Rana 10 năm trước cách đây
mục cha
commit
413ca04f46
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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