MCPcopy
hub / github.com/go-gorm/gorm / Error

Method Error

logger/slog.go:52–56  ·  view source on GitHub ↗
(ctx context.Context, msg string, data ...interface{})

Source from the content-addressed store, hash-verified

50}
51
52func (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
58func (l *slogLogger) Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) {
59 if l.LogLevel <= Silent {

Callers

nothing calls this directly

Calls 1

logMethod · 0.95

Tested by

no test coverage detected