SetLevel sets the current level.
(level Level)
| 240 | |
| 241 | // SetLevel sets the current level. |
| 242 | func (l *Logger) SetLevel(level Level) { |
| 243 | l.mu.Lock() |
| 244 | defer l.mu.Unlock() |
| 245 | atomic.StoreInt64(&l.level, int64(level)) |
| 246 | } |
| 247 | |
| 248 | // GetPrefix returns the current prefix. |
| 249 | func (l *Logger) GetPrefix() string { |
no outgoing calls