Refactor point value object and add observability

This commit is contained in:
Bernard Ngandu
2025-10-10 14:55:36 +02:00
parent 8a43d3967c
commit 68eb54995f
46 changed files with 3691 additions and 229 deletions
+79
View File
@@ -0,0 +1,79 @@
monolog:
channels:
- deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists
- signals
when@dev:
monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: ["!event"]
signals:
type: stream
path: "%kernel.logs_dir%/signals_%kernel.environment%.log"
level: debug
channels: [signals]
# 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: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
signals:
type: stream
path: "%kernel.logs_dir%/signals_%kernel.environment%.log"
level: debug
channels: [signals]
when@prod:
monolog:
handlers:
main:
type: stream
path: php://stderr
level: info
formatter: monolog.formatter.json
channels: ["!event"]
signals:
type: stream
path: php://stderr
level: info
formatter: monolog.formatter.json
channels: [signals]
sentry:
type: sentry
level: error
hub_id: sentry
channels: ["!event", "!doctrine", "!console"]
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine"]
deprecation:
type: stream
channels: [deprecation]
path: php://stderr
formatter: monolog.formatter.json