代码拉取完成,页面将自动刷新
package logmanager
// NewConf creates default configuration with InfoLevel & empty loggers.
// Suitable also for usage in flavor to programmatically specify default behavior.
func NewConf() *Config {
return &Config{
DefaultLevel: "",
Loggers: []LoggerConfig{},
Hooks: make(map[string]HookConfig),
}
}
// Config is a binding that supports to define default log levels for multiple loggers
type Config struct {
DefaultLevel string `json:"default-level"`
Loggers []LoggerConfig `json:"loggers"`
Hooks map[string]HookConfig `json:"hooks"`
}
// LoggerConfig is configuration of a particular logger.
// Currently we support only logger level.
type LoggerConfig struct {
Name string
Level string //debug, info, warn, error, fatal, panic
}
// HookConfig contains configuration of hook services
type HookConfig struct {
Protocol string
Address string
Port int
Levels []string
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。