diff --git a/doc/3.10-logging.md b/doc/3.10-logging.md index 5d6603783..8f4f15ddc 100644 --- a/doc/3.10-logging.md +++ b/doc/3.10-logging.md @@ -22,9 +22,9 @@ and forward the `debug` serverity into an Icinga 2 debug file. object FileLogger "debug-file" { severity = "debug", - path = "/var/log/icinga2/icinga2-debug.log" + path = "/var/log/icinga2/debug.log" } - + If you're starting Icinga 2 not as daemon, but in foreground using `/usr/bin/icinga2 -c /etc/icinga2/icinga2.conf` you may want to enable console logging temporary too. diff --git a/etc/icinga2/features-available/Makefile.am b/etc/icinga2/features-available/Makefile.am index 777bb8b45..f888d57e4 100644 --- a/etc/icinga2/features-available/Makefile.am +++ b/etc/icinga2/features-available/Makefile.am @@ -6,6 +6,7 @@ CONFIG_FILES = \ checker.conf \ command.conf \ compatlog.conf \ + debuglog.conf \ graphite.conf \ ido-mysql.conf \ livestatus.conf \ diff --git a/etc/icinga2/features-available/debuglog.conf b/etc/icinga2/features-available/debuglog.conf new file mode 100644 index 000000000..51c6abe49 --- /dev/null +++ b/etc/icinga2/features-available/debuglog.conf @@ -0,0 +1,9 @@ +/** + * The FileLogger type writes log information to a log file. + */ + +object FileLogger "debug-file" { + severity = "debug", + path = "/var/log/icinga2/debug.log" +} +