mirror of https://github.com/Icinga/icinga2.git
Merge pull request #8846 from Icinga/bugfix/logger-default-severity
Set a default severity for loggers
This commit is contained in:
commit
d1839471f4
|
@ -1836,7 +1836,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