feat: improved handling and logging of access denied errors
This commit is contained in:
@@ -3,6 +3,7 @@ monolog:
|
||||
- deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists
|
||||
- bpn
|
||||
- core
|
||||
- auth
|
||||
|
||||
when@dev:
|
||||
monolog:
|
||||
@@ -10,12 +11,17 @@ when@dev:
|
||||
database:
|
||||
type: service
|
||||
id: App\Logger\DatabaseHandler
|
||||
channels: ["core", "bpn"]
|
||||
channels: ["core", "bpn", "auth"]
|
||||
bpn:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.bpn.log"
|
||||
level: debug
|
||||
channels: ["bpn"]
|
||||
auth:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.auth.log"
|
||||
level: debug
|
||||
channels: ["auth"]
|
||||
core:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.core.log"
|
||||
@@ -25,7 +31,7 @@ when@dev:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||
level: debug
|
||||
channels: ["!event", "!bpn", "!core"]
|
||||
channels: ["!event", "!bpn", "!core", "!auth"]
|
||||
# uncomment to get logging in your browser
|
||||
# you may have to allow bigger header sizes in your Web server configuration
|
||||
#firephp:
|
||||
@@ -59,13 +65,18 @@ when@prod:
|
||||
database:
|
||||
type: service
|
||||
id: App\Logger\DatabaseHandler
|
||||
channels: ["core", "bpn"]
|
||||
channels: ["core", "bpn", "auth"]
|
||||
bpn:
|
||||
type: rotating_file
|
||||
max_files: 7
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.bpn.log"
|
||||
level: info
|
||||
channels: ["bpn"]
|
||||
auth:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.auth.log"
|
||||
level: debug
|
||||
channels: ["auth"]
|
||||
core:
|
||||
type: rotating_file
|
||||
max_files: 7
|
||||
@@ -78,7 +89,7 @@ when@prod:
|
||||
handler: nested
|
||||
excluded_http_codes: [404, 405]
|
||||
buffer_size: 50 # How many messages should be saved? Prevent memory leaks
|
||||
channels: ["!bpn", "!core"]
|
||||
channels: ["!bpn", "!core", "!auth"]
|
||||
nested:
|
||||
type: rotating_file
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.framework.log"
|
||||
|
||||
Reference in New Issue
Block a user