logMsg is the internal method all public methods delegate to.
(lvl Level, msg string)
| 51 | |
| 52 | // logMsg is the internal method all public methods delegate to. |
| 53 | func (l *Logger) logMsg(lvl Level, msg string) { |
| 54 | if !l.canLogAt(lvl) { |
| 55 | return |
| 56 | } |
| 57 | l.base.Log(baseCallerSkip, lvl, msg) |
| 58 | } |
| 59 | |
| 60 | func (l *Logger) Debug(args ...any) { |
| 61 | l.logMsg(DebugLevel, fmt.Sprint(args...)) |