Documentation
¶
Index ¶
- func ExtendLogger(logger *zap.SugaredLogger, label string, value interface{}) *zap.SugaredLogger
- func GinLogger() gin.HandlerFunc
- func NewGORMLogger(conf gormlog.Config) gormlog.Interface
- func NewLogger(pkg string) *zap.SugaredLogger
- func SetLogLevel(logLevel string)
- type GORMLogger
- func (l *GORMLogger) Error(ctx context.Context, msg string, data ...interface{})
- func (l *GORMLogger) Info(ctx context.Context, msg string, data ...interface{})
- func (l *GORMLogger) LogMode(logLevel gormlog.LogLevel) gormlog.Interface
- func (l *GORMLogger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l *GORMLogger) Warn(ctx context.Context, msg string, data ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtendLogger ¶
func ExtendLogger(logger *zap.SugaredLogger, label string, value interface{}) *zap.SugaredLogger
func GinLogger ¶
func GinLogger() gin.HandlerFunc
func NewLogger ¶
func NewLogger(pkg string) *zap.SugaredLogger
func SetLogLevel ¶
func SetLogLevel(logLevel string)
Types ¶
type GORMLogger ¶
func (*GORMLogger) Error ¶
func (l *GORMLogger) Error(ctx context.Context, msg string, data ...interface{})
func (*GORMLogger) Info ¶
func (l *GORMLogger) Info(ctx context.Context, msg string, data ...interface{})
func (*GORMLogger) LogMode ¶
func (l *GORMLogger) LogMode(logLevel gormlog.LogLevel) gormlog.Interface
Click to show internal directories.
Click to hide internal directories.