Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGormLogger ¶
func NewGormLogger(zap *zap.SugaredLogger, databaseLoggerConfig LoggerConfig) gormLogger.Interface
Types ¶
type AutoMigrater ¶
type AutoMigrater interface {
AutoMigrate()
}
type LoggerConfig ¶
type LoggerConfig struct { LogLevel gormLogger.LogLevel SlowThreshold time.Duration IgnoreRecordNotFoundError bool }
func NewDevelopmentGormLoggerConfig ¶
func NewDevelopmentGormLoggerConfig() LoggerConfig
func NewProductionGormLoggerConfig ¶
func NewProductionGormLoggerConfig() LoggerConfig
func (LoggerConfig) BuildWith ¶
func (loggerConfig LoggerConfig) BuildWith(zap *zap.SugaredLogger) gormLogger.Interface
Click to show internal directories.
Click to hide internal directories.