Enable logging and make the file resource definition using the new log syntax
This commit is contained in:
parent
270181885c
commit
f454fa0611
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue