Documentation
¶
Index ¶
- func IgnoreSyncError(err error) bool
- func NewZapGormLogger(zap *zap.SugaredLogger, level logger.LogLevel) logger.Interface
- type ZapGormLogger
- func (l *ZapGormLogger) Error(ctx context.Context, msg string, data ...any)
- func (l *ZapGormLogger) Info(ctx context.Context, msg string, data ...any)
- func (l *ZapGormLogger) LogMode(level logger.LogLevel) logger.Interface
- func (l *ZapGormLogger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l *ZapGormLogger) Warn(ctx context.Context, msg string, data ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IgnoreSyncError ¶ added in v0.17.0
IgnoreSyncError filters the known benign sync errors returned when zap flushes stdout/stderr-backed loggers on some platforms and runtimes.
func NewZapGormLogger ¶
Types ¶
type ZapGormLogger ¶
type ZapGormLogger struct {
// contains filtered or unexported fields
}
func (*ZapGormLogger) Error ¶
func (l *ZapGormLogger) Error(ctx context.Context, msg string, data ...any)
func (*ZapGormLogger) Info ¶
func (l *ZapGormLogger) Info(ctx context.Context, msg string, data ...any)
func (*ZapGormLogger) LogMode ¶
func (l *ZapGormLogger) LogMode(level logger.LogLevel) logger.Interface
Click to show internal directories.
Click to hide internal directories.