Versions in this module Expand all Collapse all v2 v2.3.1 Jul 26, 2023 Changes in this version + const DEBUG + const DEFAULT_MAX_AGE + const DEFAULT_ROTATION_TIME + const ERROR + const INFO + const ModuleAccessControl + const ModuleCli + const ModuleCrossChainTx + const ModuleDefault + const ModuleGateway + const ModuleHandler + const ModuleProve + const ModuleRelayChain + const ModuleRequest + const ModuleRpcServer + const WARN + func CustomLevelEncoder(level zapcore.Level, enc zapcore.PrimitiveArrayEncoder) + func CustomTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder) + func GetLogger(name string) *zap.SugaredLogger + func InitLogConfig(config []*LogModuleConfig) + func InitSugarLogger(loggerConfig *Config) (*zap.SugaredLogger, zap.AtomicLevel) + type Config struct + JsonFormat bool + LogInConsole bool + LogLevel LOG_LEVEL + LogPath string + MaxAge int + Module string + RotationSize int64 + RotationTime int + ShowColor bool + ShowLine bool + type LOG_LEVEL int + const LEVEL_DEBUG + const LEVEL_ERROR + const LEVEL_INFO + const LEVEL_WARN + func GetLogLevel(lvl string) LOG_LEVEL + type LogModuleConfig struct + FilePath string + LogInConsole bool + LogLevel string + MaxAge int + ModuleName string + RotationTime int + ShowColor bool