Documentation
¶
Index ¶
- func New(c Config) (*gorm.DB, error)
- type Config
- type CustomLogger
- func (l *CustomLogger) Error(ctx context.Context, msg string, data ...any)
- func (l *CustomLogger) Info(ctx context.Context, msg string, data ...any)
- func (l *CustomLogger) LogMode(lev logger.LogLevel) logger.Interface
- func (l *CustomLogger) Trace(ctx context.Context, begin time.Time, ...)
- func (l *CustomLogger) Warn(ctx context.Context, msg string, data ...any)
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomLogger ¶ added in v0.7.7
type CustomLogger struct {
// contains filtered or unexported fields
}
func NewCustomLogger ¶ added in v0.7.7
func NewCustomLogger(logger *xlogger.Logger) *CustomLogger
func (*CustomLogger) Error ¶ added in v0.7.7
func (l *CustomLogger) Error(ctx context.Context, msg string, data ...any)
func (*CustomLogger) Info ¶ added in v0.7.7
func (l *CustomLogger) Info(ctx context.Context, msg string, data ...any)
func (*CustomLogger) LogMode ¶ added in v0.7.7
func (l *CustomLogger) LogMode(lev logger.LogLevel) logger.Interface
Click to show internal directories.
Click to hide internal directories.