Enable logging and make the file resource definition using the new log syntax

This commit is contained in:
Johannes Meyer 2014-04-30 09:10:23 +02:00
parent 270181885c
commit f454fa0611
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -49,7 +49,7 @@ bind_dn = "@ldap_binddn@"
bind_pw = @ldap_bindpass@
[logfile]
type = file
filename = "/vagrant/var/log/icingaweb.log"
fields = "/^(?<datetime>[0-9]{4}(-[0-9]{2}){2}T[0-9]{2}(:[0-9]{2}){2}(\\+[0-9]{2}:[0-9]{2})?) (?<loglevel>[A-Za-z]+)( \([0-9]+\))?: (?<message>.*)$/"
type = file
filename = "@icingaweb_log_path@/icingaweb.log"
fields = "/^(?<datetime>[0-9]{4}(-[0-9]{2}){2}T[0-9]{2}(:[0-9]{2}){2}(\\+[0-9]{2}:[0-9]{2})?) - (?<loglevel>[A-Za-z]+) - (?<message>.*)$/"
; format: PCRE