Documentation
¶
Index ¶
Constants ¶
View Source
const ( ModuleWeb = "[WEB]" ModuleDb = "[DB]" ModuleSession = "[SESSION]" K8s = "[KUBERNETES]" ModuleAPI = "[API]" )
nolint
Variables ¶
This section is empty.
Functions ¶
func GetLoggerByChain ¶
func GetLoggerByChain(name, chainId string) *zap.SugaredLogger
GetLoggerByChain - 获取带链标识的Logger对象
Types ¶
type LogConf ¶
type LogConf struct {
LogLevelDefault string `mapstructure:"log_level_default"`
LogLevels map[string]string `mapstructure:"log_levels"`
FilePath string `mapstructure:"file_path"`
MaxAge int `mapstructure:"max_age"`
RotationTime int `mapstructure:"rotation_time"`
LogInConsole bool `mapstructure:"log_in_console"`
ShowColor bool `mapstructure:"show_color"`
}
LogConf 日志配置
func GetDefaultLogNodeConfig ¶
func GetDefaultLogNodeConfig() LogConf
GetDefaultLogNodeConfig get default log node config
Click to show internal directories.
Click to hide internal directories.