icinga2/doc/3.10-logging.md

21 lines
755 B
Markdown
Raw Normal View History

## <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:
2014-03-30 11:52:39 +02:00
* File logging
* Syslog (on *NIX-based operating systems)
2013-10-18 20:05:08 +02:00
* Console logging (`STDOUT` on tty)
2014-03-30 11:52:39 +02:00
You can enable additional loggers using the `icinga2-enable-feature`
and `icinga2-disable-feature` commands to configure loggers:
2013-10-18 20:05:08 +02:00
2014-03-30 11:52:39 +02:00
Feature | Description
---------|------------
debuglog | Debug log (path: `/var/log/icinga2/debug.log`, severity: `debug` or higher)
mainlog | Main log (path: `/var/log/icinga2/icinga2.log`, severity: `information` or higher)
syslog | Syslog (severity: `warning` or higher)
2013-10-21 11:00:40 +02:00
2014-03-30 11:52:39 +02:00
By default file the `mainlog` feature is enabled. When running Icinga 2
on a terminal log messages with severity `information` or higher are
written to the console.