1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package main
- type FrontendConfigYAML struct {
- LogConfig LogConfigYAML `yaml:"log"`
- }
- type LogConfigYAML struct {
- AccessLogEnable bool `yaml:"access_log_enable"`
- RollingLogConfig RollingLoggerConfigYAML `yaml:"rolling_logger_config"`
- AccessLoggerDetailConfig AccessLoggerConfigYAML `yaml:"access_logger_config"`
- ErrorLoggerDetailConfig ErrorLoggerConfigYAML `yaml:"error_logger_config"`
- }
- type RollingLoggerConfigYAML struct {
- ErrLogCfg LumberjackLoggerYAML `yaml:"error_log"`
- AccessLogCfg LumberjackLoggerYAML `yaml:"access_log"`
- }
- type LumberjackLoggerYAML struct {
- FileName string `yaml:"file"`
- MaxSize int `yaml:"max_size"`
- MaxAge int `yaml:"max_age"`
- MaxBackups int `yaml:"max_backups"`
- UseLocalTime bool `yaml:"use_local_time"`
- Compress bool `yaml:"compress_history"`
- }
- type AccessLoggerConfigYAML struct {
- OutputLevel string `yaml:"output_level"`
- SuccessLevel string `yaml:"success_level"`
- NotFoundLevel string `yaml:"not_found_level"`
- ForbiddenLevel string `yaml:"forbidden_level"`
- GatewayErrorLevel string `yaml:"gateway_error_level"`
- InternalErrorLevel string `yaml:"internal_error_level"`
- LogFormat string `yaml:"log_format"`
- }
- type ErrorLoggerConfigYAML struct {
- OutputLevel string `yaml:"output_level"`
- LogFormat string `yaml:"log_format"`
- }
|