(ctx context.Context, msg string, data ...interface{})
| 44 | } |
| 45 | |
| 46 | func (l *slogLogger) Warn(ctx context.Context, msg string, data ...interface{}) { |
| 47 | if l.LogLevel >= Warn { |
| 48 | l.log(ctx, slog.LevelWarn, msg, slog.Any("data", data)) |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | func (l *slogLogger) Error(ctx context.Context, msg string, data ...interface{}) { |
| 53 | if l.LogLevel >= Error { |