Versions in this module Expand all Collapse all v1 v1.0.1 Aug 9, 2020 v1.0.0 Jun 18, 2020 Changes in this version + func Debug(msg string, fields ...interface{}) + func Error(msg string, fields ...interface{}) + func Info(msg string, fields ...interface{}) + func NewLogger(filePath string, level zapcore.Level) *zap.Logger + func Warn(msg string, fields ...interface{}) + type LoggerImp struct + Base map[string]string + func NewWebLogger() *LoggerImp + func (l *LoggerImp) Debug(msg string, fields ...interface{}) + func (l *LoggerImp) Error(msg string, fields ...interface{}) + func (l *LoggerImp) Info(msg string, fields ...interface{}) + func (l *LoggerImp) SetBase(base map[string]string) + func (l *LoggerImp) Warn(msg string, fields ...interface{}) + type LoggerObj struct + var DebugLogger LoggerObj + var ErrorLogger LoggerObj + var InfoLogger LoggerObj + var WarnLogger LoggerObj + type Option struct + BaseParams interface{} + CallerKey string + Compress bool + Debug bool + LevelKey string + MaxAge int + MaxBackups int + MaxSize int + MessageKey string + NameKey string + ServiceName string + StacktraceKey string + TimeKey string + func (o *Option) Start(dir string)