mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
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"
|
authenticationMode = "internal"
|
||||||
|
|
||||||
[logging]
|
[logging]
|
||||||
;enable = false
|
enable = true
|
||||||
; Writing to a Stream
|
; Writing to a Stream
|
||||||
type = "stream"
|
type = "stream"
|
||||||
; Write data to the following file
|
; Write data to the following file
|
||||||
|
@ -49,7 +49,7 @@ bind_dn = "@ldap_binddn@"
|
|||||||
bind_pw = @ldap_bindpass@
|
bind_pw = @ldap_bindpass@
|
||||||
|
|
||||||
[logfile]
|
[logfile]
|
||||||
type = file
|
type = file
|
||||||
filename = "/vagrant/var/log/icingaweb.log"
|
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]+)( \([0-9]+\))?: (?<message>.*)$/"
|
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
|
; format: PCRE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user