Added the UnlikelyLogger constructor (#1169)

This commit is contained in:
zesun96
2025-08-18 07:41:20 +08:00
committed by GitHub
parent 22b4121f1c
commit b8ed90b666
+4
View File
@@ -106,6 +106,10 @@ type UnlikelyLogger struct {
keysAndValues []any
}
func NewUnlikelyLogger(logger Logger, keysAndValues ...any) UnlikelyLogger {
return UnlikelyLogger{logger, keysAndValues}
}
func (l UnlikelyLogger) makeLogger() Logger {
return l.logger.WithCallDepth(1)
}