2014-02-05 15:53:22 +01:00
|
|
|
## <a id="logging"></a> Logging
|
2013-10-10 11:22:32 +02:00
|
|
|
|
2013-10-18 20:05:08 +02:00
|
|
|
Icinga 2 supports three different types of logging:
|
|
|
|
|
|
|
|
* File logging (local Icinga 2 log file)
|
|
|
|
* Syslog facility logging (system's syslog application)
|
|
|
|
* Console logging (`STDOUT` on tty)
|
|
|
|
|
|
|
|
> **Note**
|
|
|
|
>
|
|
|
|
> You can define multiple logging objects at once.
|
|
|
|
|
|
|
|
The most common scenario will be logging Icinga 2's output to
|
|
|
|
syslog with severity `information`.
|
|
|
|
|
|
|
|
object SyslogLogger "syslog" {
|
|
|
|
severity = "information"
|
|
|
|
}
|
|
|
|
|
|
|
|
For debugging purposes you can install a `FileLogger` object
|
2014-03-09 22:30:56 +01:00
|
|
|
and forward the `debug` severity into an Icinga 2 debug file.
|
2013-10-18 20:05:08 +02:00
|
|
|
|
|
|
|
object FileLogger "debug-file" {
|
|
|
|
severity = "debug",
|
2013-10-21 11:00:40 +02:00
|
|
|
path = "/var/log/icinga2/debug.log"
|
2013-10-18 20:05:08 +02:00
|
|
|
}
|
2013-10-21 11:00:40 +02:00
|
|
|
|