mirror of https://github.com/Icinga/icinga2.git
Set a default severity for loggers
So far, the documentation has claimed that loggers have a default severity (information for FileLogger and warning for SyslogLogger). However, this was not the case and not setting the severity resulted in a configuration error. This commit changes the default value to be information for all loggers.
This commit is contained in:
parent
2cd9c1d902
commit
963ad9dd1c
|
@ -1835,7 +1835,7 @@ Configuration Attributes:
|
|||
|
||||
Name | Type | Description
|
||||
--------------------------|-----------------------|----------------------------------
|
||||
severity | String | **Optional.** The minimum severity for this log. Can be "debug", "notice", "information", "warning" or "critical". Defaults to "warning".
|
||||
severity | String | **Optional.** The minimum severity for this log. Can be "debug", "notice", "information", "warning" or "critical". Defaults to "information".
|
||||
facility | String | **Optional.** Defines the facility to use for syslog entries. This can be a facility constant like `FacilityDaemon`. Defaults to `FacilityUser`.
|
||||
|
||||
Facility Constants:
|
||||
|
|
|
@ -9,7 +9,9 @@ namespace icinga
|
|||
|
||||
abstract class Logger : ConfigObject
|
||||
{
|
||||
[config] String severity;
|
||||
[config] String severity {
|
||||
default {{{ return "information"; }}}
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue