Documentation ¶
Index ¶
- func GormLoggerWithSlowLog(enabled bool, slowThreshold time.Duration) func(*gormLoggerAdapter)
- func NewEmptyLogger() contracts.LoggerInterface
- func NewGoCacheAdapter(c *cache.Cache) contracts.Store
- func NewGormLoggerAdapter(opts ...GormLoggerOption) logger.Interface
- func NewLogrusLogger(app contracts.ApplicationInterface) contracts.LoggerInterface
- func NewRobfigCronV3Runner() contracts.CronRunner
- func NewZapLogger(app contracts.ApplicationInterface) contracts.LoggerInterface
- type GormLoggerOption
- type NsqLoggerAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GormLoggerWithSlowLog ¶
GormLoggerWithSlowLog slow log switch.
func NewEmptyLogger ¶
func NewEmptyLogger() contracts.LoggerInterface
NewEmptyLogger return contracts.LoggerInterface
func NewGoCacheAdapter ¶
NewGoCacheAdapter return Store instance.
func NewGormLoggerAdapter ¶
func NewGormLoggerAdapter(opts ...GormLoggerOption) logger.Interface
NewGormLoggerAdapter return logger.Interface.
func NewLogrusLogger ¶
func NewLogrusLogger(app contracts.ApplicationInterface) contracts.LoggerInterface
NewLogrusLogger return contracts.LoggerInterface
func NewRobfigCronV3Runner ¶
func NewRobfigCronV3Runner() contracts.CronRunner
NewRobfigCronV3Runner return contracts.CronRunner
func NewZapLogger ¶
func NewZapLogger(app contracts.ApplicationInterface) contracts.LoggerInterface
NewZapLogger impl contracts.LoggerInterface.
Types ¶
type GormLoggerOption ¶
type GormLoggerOption func(*gormLoggerAdapter)
type NsqLoggerAdapter ¶
type NsqLoggerAdapter struct{}
Click to show internal directories.
Click to hide internal directories.