MM-36764 mlog refactor (#18118)
Refactor mlog - simplify mlog by removing redundant code - remove Zap dependency - update unit test helpers - update logging config - update auditing
Этот коммит содержится в:
@@ -1223,6 +1223,12 @@ type LogSettings struct {
|
||||
AdvancedLoggingConfig *string `access:"environment_logging,write_restrictable,cloud_restrictable"`
|
||||
}
|
||||
|
||||
func NewLogSettings() *LogSettings {
|
||||
settings := &LogSettings{}
|
||||
settings.SetDefaults()
|
||||
return settings
|
||||
}
|
||||
|
||||
func (s *LogSettings) SetDefaults() {
|
||||
if s.EnableConsole == nil {
|
||||
s.EnableConsole = NewBool(true)
|
||||
|
||||
Ссылка в новой задаче
Block a user