Documentation ¶
Index ¶
- Variables
- func NewFxLogger(logging *log.Logger) fxevent.Logger
- func NewGinLogger(logger *log.Logger) gin.HandlerFunc
- func NewLogger() *log.Logger
- func NewLoggerFactory(level log.Level) func() *log.Logger
- func WithLoggerFactory(level log.Level) fx.Option
- type GormLogger
- func (g *GormLogger) Error(ctx context.Context, s string, opts ...interface{})
- func (g *GormLogger) Info(ctx context.Context, s string, opts ...interface{})
- func (g *GormLogger) LogMode(ll glogger.LogLevel) glogger.Interface
- func (g *GormLogger) Trace(ctx context.Context, begin time.Time, ...)
- func (g *GormLogger) Warn(ctx context.Context, s string, opts ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var WithFxLogger = fx.WithLogger(NewFxLogger)
View Source
var WithLogger = fx.Provide(NewLogger)
Functions ¶
func NewGinLogger ¶
func NewGinLogger(logger *log.Logger) gin.HandlerFunc
Types ¶
type GormLogger ¶
func NewGormLogger ¶
func NewGormLogger(logger *log.Logger) *GormLogger
func (*GormLogger) Error ¶
func (g *GormLogger) Error(ctx context.Context, s string, opts ...interface{})
func (*GormLogger) Info ¶
func (g *GormLogger) Info(ctx context.Context, s string, opts ...interface{})
Click to show internal directories.
Click to hide internal directories.