From f454fa0611979a9fe384d801bca2bb524f3201ad Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 30 Apr 2014 09:10:23 +0200 Subject: [PATCH] Enable logging and make the file resource definition using the new log syntax --- config/config.ini.in | 2 +- config/resources.ini.in | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/config.ini.in b/config/config.ini.in index 4d12e67cb..c8724ad77 100644 --- a/config/config.ini.in +++ b/config/config.ini.in @@ -16,7 +16,7 @@ timeFormat = "g:i A" authenticationMode = "internal" [logging] -;enable = false +enable = true ; Writing to a Stream type = "stream" ; Write data to the following file diff --git a/config/resources.ini.in b/config/resources.ini.in index c5eafeb55..d4c617c51 100644 --- a/config/resources.ini.in +++ b/config/resources.ini.in @@ -49,7 +49,7 @@ bind_dn = "@ldap_binddn@" bind_pw = @ldap_bindpass@ [logfile] -type = file -filename = "/vagrant/var/log/icingaweb.log" -fields = "/^(?[0-9]{4}(-[0-9]{2}){2}T[0-9]{2}(:[0-9]{2}){2}(\\+[0-9]{2}:[0-9]{2})?) (?[A-Za-z]+)( \([0-9]+\))?: (?.*)$/" +type = file +filename = "@icingaweb_log_path@/icingaweb.log" +fields = "/^(?[0-9]{4}(-[0-9]{2}){2}T[0-9]{2}(:[0-9]{2}){2}(\\+[0-9]{2}:[0-9]{2})?) - (?[A-Za-z]+) - (?.*)$/" ; format: PCRE