feat: log to database

This commit is contained in:
Björn Fromme
2025-04-25 08:31:45 +02:00
parent 8d1edc3da0
commit 9094e8c061
7 changed files with 288 additions and 0 deletions
+8
View File
@@ -7,6 +7,10 @@ monolog:
when@dev:
monolog:
handlers:
database:
type: service
id: App\Logger\DatabaseHandler
channels: ["core", "bpn"]
bpn:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.bpn.log"
@@ -52,6 +56,10 @@ when@test:
when@prod:
monolog:
handlers:
database:
type: service
id: App\Logger\DatabaseHandler
channels: ["core", "bpn"]
bpn:
type: rotating_file
max_files: 7