Versions in this module Expand all Collapse all v1 v1.0.1 Oct 14, 2022 Changes in this version type SpecLogger + var WSLogger *SpecLogger v1.0.0 Jun 2, 2022 Changes in this version + const DefaultPath + const LevelDebug + const LevelError + const LevelInfo + const LevelPanic + const LevelWarn + const MillTimeFormat + func Debug(msg string, v ...interface{}) + func DebugWithField(msg string, v ...zap.Field) + func DebugWithMap(obj map[string]interface{}, msg string, v ...interface{}) + func DebugWithStruct(obj interface{}, msg string, v ...interface{}) + func Error(msg string, v ...interface{}) + func ErrorWithField(msg string, v ...zap.Field) + func ErrorWithMap(obj map[string]interface{}, msg string, v ...interface{}) + func ErrorWithStruct(obj interface{}, msg string, v ...interface{}) + func Info(msg string, v ...interface{}) + func InfoWithField(msg string, v ...zap.Field) + func InfoWithMap(obj map[string]interface{}, msg string, v ...interface{}) + func InfoWithStruct(obj interface{}, msg string, v ...interface{}) + func InitLogger(path, file string, level int) + func LDebug(name string, msg string, v ...interface{}) + func LDebugWithField(name string, msg string, v ...zap.Field) + func LDebugWithMap(name string, obj map[string]interface{}, msg string, v ...interface{}) + func LDebugWithStruct(name string, obj interface{}, msg string, v ...interface{}) + func LError(name string, msg string, v ...interface{}) + func LErrorWithField(name string, msg string, v ...zap.Field) + func LErrorWithMap(name string, obj map[string]interface{}, msg string, v ...interface{}) + func LErrorWithStruct(name string, obj interface{}, msg string, v ...interface{}) + func LInfo(name string, msg string, v ...interface{}) + func LInfoWithField(name string, msg string, v ...zap.Field) + func LInfoWithMap(name string, obj map[string]interface{}, msg string, v ...interface{}) + func LInfoWithStruct(name string, obj interface{}, msg string, v ...interface{}) + func LPanic(name string, msg string, v ...interface{}) + func LPanicWithField(name string, msg string, v ...zap.Field) + func LPanicWithMap(name string, obj map[string]interface{}, msg string, v ...interface{}) + func LPanicWithStruct(name string, obj interface{}, msg string, v ...interface{}) + func LWarn(name string, msg string, v ...interface{}) + func LWarnWithField(name string, msg string, v ...zap.Field) + func LWarnWithMap(name string, obj map[string]interface{}, msg string, v ...interface{}) + func LWarnWithStruct(name string, obj interface{}, msg string, v ...interface{}) + func NormalTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder) + func Painc(e error) + func Warn(msg string, v ...interface{}) + func WarnWithField(msg string, v ...zap.Field) + func WarnWithMap(obj map[string]interface{}, msg string, v ...interface{}) + func WarnWithStruct(obj interface{}, msg string, v ...interface{}) + type LogObj struct + Key string + Level int + Name string + Path string + ShowCaller bool + ToConsole bool + ZapLogger *zap.Logger + func CheckLogger(name string) *LogObj + func GenLogger(path string, name string, level int, showCaller bool) *LogObj + func GenLoggerWithConsole(path string, name string, level int, showCaller bool, toConsole bool) *LogObj + type SpecLogger struct + Name string + var DBLogger *SpecLogger + var RequestLogger *SpecLogger + func NewSpecLogger(name string, showCaller, toConsole bool) *SpecLogger + func (l SpecLogger) Debug(msg string, v ...interface{}) + func (l SpecLogger) DebugWithField(msg string, v ...zap.Field) + func (l SpecLogger) DebugWithMap(obj map[string]interface{}, msg string, v ...interface{}) + func (l SpecLogger) DebugWithStruct(obj interface{}, msg string, v ...interface{}) + func (l SpecLogger) Error(msg string, v ...interface{}) + func (l SpecLogger) ErrorWithField(msg string, v ...zap.Field) + func (l SpecLogger) ErrorWithMap(obj map[string]interface{}, msg string, v ...interface{}) + func (l SpecLogger) ErrorWithStruct(obj interface{}, msg string, v ...interface{}) + func (l SpecLogger) Info(msg string, v ...interface{}) + func (l SpecLogger) InfoWithField(msg string, v ...zap.Field) + func (l SpecLogger) InfoWithMap(obj map[string]interface{}, msg string, v ...interface{}) + func (l SpecLogger) InfoWithStruct(obj interface{}, msg string, v ...interface{}) + func (l SpecLogger) Panic(msg string, v ...interface{}) + func (l SpecLogger) PanicWithField(msg string, v ...zap.Field) + func (l SpecLogger) PanicWithMap(obj map[string]interface{}, msg string, v ...interface{}) + func (l SpecLogger) PanicWithStruct(obj interface{}, msg string, v ...interface{}) + func (l SpecLogger) Warn(msg string, v ...interface{}) + func (l SpecLogger) WarnWithField(msg string, v ...zap.Field) + func (l SpecLogger) WarnWithMap(obj map[string]interface{}, msg string, v ...interface{}) + func (l SpecLogger) WarnWithStruct(obj interface{}, msg string, v ...interface{})