mirror of https://github.com/Icinga/icinga2.git
Add available feature journald.conf in /etc
Similar to the other loggers, add a predefined object JournaldLogger in features-available that will log messages >= warning, with default facility LOG_USER. It is disabled by default, and can be enabled with: $ sudo icing2 feature enable journald
This commit is contained in:
parent
173caa42aa
commit
4d678fcef0
|
@ -39,6 +39,9 @@ install_if_not_exists(icinga2/features-available/debuglog.conf ${ICINGA2_CONFIGD
|
|||
install_if_not_exists(icinga2/features-available/mainlog.conf ${ICINGA2_CONFIGDIR}/features-available)
|
||||
if(NOT WIN32)
|
||||
install_if_not_exists(icinga2/features-available/syslog.conf ${ICINGA2_CONFIGDIR}/features-available)
|
||||
if(HAVE_SYSTEMD)
|
||||
install_if_not_exists(icinga2/features-available/journald.conf ${ICINGA2_CONFIGDIR}/features-available)
|
||||
endif()
|
||||
else()
|
||||
install_if_not_exists(icinga2/features-available/windowseventlog.conf ${ICINGA2_CONFIGDIR}/features-available)
|
||||
endif()
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* The JournaldLogger type writes log information to the systemd journal.
|
||||
*/
|
||||
|
||||
object JournaldLogger "journald" {
|
||||
severity = "warning"
|
||||
}
|
Loading…
Reference in New Issue