]> granicus.if.org Git - icinga2/commitdiff
Add debuglog feature.
authorMichael Friedrich <michael.friedrich@netways.de>
Mon, 21 Oct 2013 09:00:40 +0000 (11:00 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Mon, 21 Oct 2013 09:26:08 +0000 (11:26 +0200)
doc/3.10-logging.md
etc/icinga2/features-available/Makefile.am
etc/icinga2/features-available/debuglog.conf [new file with mode: 0644]

index 5d66037831e8703ec662c356d10d1a59159f8a10..8f4f15ddc5d3c64b9e58840bc0da6bd1f6ffa5a4 100644 (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.
index 777bb8b45da0962addc3cda7d0ac9148a24765ac..f888d57e47af2889f8d19453034a580a68691d73 100644 (file)
@@ -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 (file)
index 0000000..51c6abe
--- /dev/null
@@ -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"
+}
+