Versions in this module Expand all Collapse all v2 v2.3.3 Oct 19, 2023 Changes in this version + const ColorBlack + const ColorBlue + const ColorCyan + const ColorGreen + const ColorMagenta + const ColorRed + const ColorWhite + const ColorYellow + const DEBUG + const DEFAULT_MAX_AGE + const DEFAULT_ROTATION_SIZE + const DEFAULT_ROTATION_TIME + const ERROR + const INFO + const ROTATION_SIZE_MB + const WARN + func CustomLevelEncoder(level zapcore.Level, enc zapcore.PrimitiveArrayEncoder) + func CustomTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder) + func InitSugarLogger(logConfig *LogConfig, writer ...io.Writer) (*zap.SugaredLogger, zap.AtomicLevel) + type LOG_LEVEL int + const LEVEL_DEBUG + const LEVEL_ERROR + const LEVEL_INFO + const LEVEL_WARN + func GetLogLevel(lvl string) LOG_LEVEL + type LogConfig struct + ChainId string + IsBrief bool + JsonFormat bool + LogInConsole bool + LogLevel LOG_LEVEL + LogPath string + MaxAge int + Module string + RotationSize int64 + RotationTime int + ShowColor bool + ShowLine bool + StackTraceLevel string + type LoggerInterface interface + Debug func(args ...interface{}) + Debugf func(format string, args ...interface{}) + Error func(args ...interface{}) + Errorf func(format string, args ...interface{}) + Info func(args ...interface{}) + Infof func(format string, args ...interface{}) + Warn func(args ...interface{}) + Warnf func(format string, args ...interface{})