Versions in this module Expand all Collapse all v0 v0.2.0 Sep 30, 2023 Changes in this version + const LogicalSqlLog + const MainLog + const PhysicalSqlLog + const TxLog + func Debug(v ...interface{}) + func Debugf(format string, v ...interface{}) + func DebugfWithLogType(logType LogType, format string, v ...interface{}) + func Error(v ...interface{}) + func Errorf(format string, v ...interface{}) + func ErrorfWithLogType(logType LogType, format string, v ...interface{}) + func Fatal(v ...interface{}) + func Fatalf(format string, v ...interface{}) + func FatalfWithLogType(logType LogType, format string, v ...interface{}) + func Info(v ...interface{}) + func Infof(format string, v ...interface{}) + func InfofWithLogType(logType LogType, format string, v ...interface{}) + func Init(cfg *Config) + func NewContext(ctx context.Context, connectionID uint32, fields ...zapcore.Field) context.Context + func NewLogger(logType LogType, cfg *Config) *zap.SugaredLogger + func NewSlowLogger(logPath string, cfg *Config) *zap.SugaredLogger + func Panic(v ...interface{}) + func Panicf(format string, v ...interface{}) + func PanicfWithLogType(logType LogType, format string, v ...interface{}) + func Warn(v ...interface{}) + func Warnf(format string, v ...interface{}) + func WarnfWithLogType(logType LogType, format string, v ...interface{}) + type CompositeLogger struct + func NewCompositeLogger(cfg *Config) *CompositeLogger + func WithContext(connectionID uint32, ctx context.Context) *CompositeLogger + func (c *CompositeLogger) Debug(v ...interface{}) + func (c *CompositeLogger) Debugf(format string, v ...interface{}) + func (c *CompositeLogger) DebugfWithLogType(logType LogType, format string, v ...interface{}) + func (c *CompositeLogger) Error(v ...interface{}) + func (c *CompositeLogger) Errorf(format string, v ...interface{}) + func (c *CompositeLogger) ErrorfWithLogType(logType LogType, format string, v ...interface{}) + func (c *CompositeLogger) Fatal(v ...interface{}) + func (c *CompositeLogger) Fatalf(format string, v ...interface{}) + func (c *CompositeLogger) FatalfWithLogType(logType LogType, format string, v ...interface{}) + func (c *CompositeLogger) Info(v ...interface{}) + func (c *CompositeLogger) Infof(format string, v ...interface{}) + func (c *CompositeLogger) InfofWithLogType(logType LogType, format string, v ...interface{}) + func (c *CompositeLogger) Panic(v ...interface{}) + func (c *CompositeLogger) Panicf(format string, v ...interface{}) + func (c *CompositeLogger) PanicfWithLogType(logType LogType, format string, v ...interface{}) + func (c *CompositeLogger) Warn(v ...interface{}) + func (c *CompositeLogger) Warnf(format string, v ...interface{}) + func (c *CompositeLogger) WarnfWithLogType(logType LogType, format string, v ...interface{}) + func (c *CompositeLogger) With(fields ...zap.Field) *CompositeLogger + type Config struct + Compress bool + Console bool + Level string + MaxAge int + MaxBackups int + MaxSize string + Path string + SqlLogEnabled bool + func DefaultConfig() *Config + type LogType string + type Logger interface + Debug func(v ...interface{}) + Debugf func(format string, v ...interface{}) + Error func(v ...interface{}) + Errorf func(format string, v ...interface{}) + Fatal func(v ...interface{}) + Fatalf func(format string, v ...interface{}) + Info func(v ...interface{}) + Infof func(format string, v ...interface{}) + Panic func(v ...interface{}) + Panicf func(format string, v ...interface{}) + Warn func(v ...interface{}) + Warnf func(format string, v ...interface{}) + type LoggerKey string v0.1.0-rc1 Sep 1, 2022