-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee2b299
commit e63b46b
Showing
3 changed files
with
72 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,68 @@ | ||
monolog: | ||
handlers: | ||
access: | ||
type: rotating_file | ||
path: '%kernel.logs_dir%/%kernel.environment%.access.log' | ||
action_level: debug | ||
channels: [access] | ||
# 2 maanden | ||
max_files: 60 | ||
channels: | ||
- deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists | ||
|
||
when@dev: | ||
monolog: | ||
handlers: | ||
main: | ||
type: stream | ||
path: '%kernel.logs_dir%/%kernel.environment%.log' | ||
level: debug | ||
channels: ['!event'] | ||
# uncomment to get logging in your browser | ||
# you may have to allow bigger header sizes in your Web server configuration | ||
#firephp: | ||
# type: firephp | ||
# level: info | ||
#chromephp: | ||
# type: chromephp | ||
# level: info | ||
console: | ||
type: console | ||
process_psr_3_messages: false | ||
channels: ['!event', '!doctrine', '!console'] | ||
|
||
when@test: | ||
monolog: | ||
handlers: | ||
main: | ||
type: fingers_crossed | ||
action_level: error | ||
handler: nested | ||
excluded_http_codes: [404, 405] | ||
channels: ['!event'] | ||
nested: | ||
type: console | ||
level: debug | ||
|
||
when@prod: | ||
monolog: | ||
handlers: | ||
access: | ||
type: rotating_file | ||
path: '%kernel.logs_dir%/%kernel.environment%.access.log' | ||
action_level: debug | ||
channels: [access] | ||
# 2 maanden | ||
max_files: 60 | ||
main: | ||
type: fingers_crossed | ||
action_level: error | ||
handler: nested | ||
excluded_http_codes: [404, 405] | ||
buffer_size: 50 # How many messages should be saved? Prevent memory leaks | ||
nested: | ||
type: stream | ||
path: php://stderr | ||
level: debug | ||
formatter: monolog.formatter.json | ||
console: | ||
type: console | ||
process_psr_3_messages: false | ||
channels: ['!event', '!doctrine'] | ||
deprecation: | ||
type: stream | ||
channels: [deprecation] | ||
path: php://stderr | ||
formatter: monolog.formatter.json |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters