Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func GinLogger() gin.HandlerFunc
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func Recovery(logger *zap.Logger, stack bool) gin.HandlerFunc
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- func WithConfig()
- type GormLog
- func (gl *GormLog) Error(ctx context.Context, msg string, arg ...interface{})
- func (gl *GormLog) Info(ctx context.Context, msg string, arg ...interface{})
- func (gl *GormLog) LogMode(level gormLogger.LogLevel) gormLogger.Interface
- func (gl *GormLog) Trace(ctx context.Context, begin time.Time, ...)
- func (gl *GormLog) Warn(ctx context.Context, msg string, arg ...interface{})
- type NsqLoggerI
Constants ¶
View Source
const ( Statement string = "Statement" TimeMs string = "TimeMs" )
View Source
const (
InterfaceTrack = "interface"
)
Variables ¶
View Source
var ( TeamsLog *logger.Logger Config *logger.Config )
Functions ¶
func GinLogger ¶
func GinLogger() gin.HandlerFunc
Types ¶
type GormLog ¶
type GormLog struct { gormLogger.Config gormLogger.LogLevel // contains filtered or unexported fields }
func (*GormLog) LogMode ¶
func (gl *GormLog) LogMode(level gormLogger.LogLevel) gormLogger.Interface
Click to show internal directories.
Click to hide internal directories.