Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLoggers ¶ added in v0.5.0
func InitLoggers(globalCfg GlobalConfig, subCfgs map[string]GlobalConfig, opts ...zap.Option) error
InitLoggers initializes the global logger and other sub loggers.
func RegisterLevelConfigMux ¶
RegisterLevelConfigMux registers log's level config http mux.
Types ¶
type GlobalConfig ¶
type GlobalConfig struct {
Zap *zap.Config `json:"zap" yaml:"zap"`
StderrRedirectFile *string `json:"stderrRedirectFile" yaml:"stderrRedirectFile"`
RedirectStdLog bool `json:"stdLogRedirect" yaml:"stdLogRedirect"`
EcsIntegration bool `json:"ecsIntegration" yaml:"ecsIntegration"`
}
GlobalConfig defines the global logger configurations.
Click to show internal directories.
Click to hide internal directories.