Add debuglog feature.

This commit is contained in:
Michael Friedrich 2013-10-21 11:00:40 +02:00
parent fab0d1efcc
commit 4fc170bced
3 changed files with 12 additions and 2 deletions

View File

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

View File

@ -6,6 +6,7 @@ CONFIG_FILES = \
checker.conf \
command.conf \
compatlog.conf \
debuglog.conf \
graphite.conf \
ido-mysql.conf \
livestatus.conf \

View File

@ -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"
}