AspireSync/config/packages/monolog.yaml
Chuck Adams fdc1ced7ec
convert to full Symfony framework (#35)
* feat: switch to symfony/skeleton 7.2

* chore: move AspirePress\AspireSync -> App

* refactor: rm styled output which is redundant with monolog

* docs: update README for bin/console

* refactor: rename commands to all use sync: prefix

* chore: rm bin/aspiresync

* feat: add SyncAsset and SyncResource entities

* chore: add doctrine-migrations-bindle

* feat: add migration

* feat: new docker-compose stack

* chore: switch to postgres backend
2024-12-01 08:04:14 -07:00

62 lines
2 KiB
YAML

monolog:
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: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
when@prod:
monolog:
handlers:
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