Merge pull request #8846 from Icinga/bugfix/logger-default-severity

Set a default severity for loggers
This commit is contained in:
Julian Brost 2021-06-28 17:15:26 +02:00 committed by GitHub
commit d1839471f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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:

View File

@ -9,7 +9,9 @@ namespace icinga
abstract class Logger : ConfigObject
{
[config] String severity;
[config] String severity {
default {{{ return "information"; }}}
};
};
}