(ctx context.Context, msg string, data ...interface{})
| 50 | } |
| 51 | |
| 52 | func (l *slogLogger) Error(ctx context.Context, msg string, data ...interface{}) { |
| 53 | if l.LogLevel >= Error { |
| 54 | l.log(ctx, slog.LevelError, msg, slog.Any("data", data)) |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | func (l *slogLogger) Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) { |
| 59 | if l.LogLevel <= Silent { |