mirror of
https://github.com/kevinpapst/kimai2.git
synced 2024-12-22 12:18:29 +00:00
66 lines
2.1 KiB
YAML
66 lines
2.1 KiB
YAML
monolog:
|
|
channels: ["deprecation"]
|
|
|
|
when@prod:
|
|
monolog:
|
|
handlers:
|
|
main:
|
|
type: fingers_crossed
|
|
action_level: error
|
|
handler: file_log
|
|
excluded_http_codes:
|
|
- {400: ['^/api/']}
|
|
- {401: ['^/api/']}
|
|
- 403
|
|
- 404
|
|
- {405: ['/homepage$', '/login_check$', '/export/data$']}
|
|
channels: ["!deprecation"]
|
|
file_log:
|
|
type: stream
|
|
level: info
|
|
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
|
formatter: monolog.formatter.kimai
|
|
console:
|
|
type: console
|
|
process_psr_3_messages: false
|
|
channels: ["!event", "!doctrine", "!deprecation"]
|
|
|
|
when@dev:
|
|
monolog:
|
|
handlers:
|
|
main:
|
|
type: fingers_crossed
|
|
action_level: notice
|
|
handler: file_log
|
|
excluded_http_codes:
|
|
- {400: ['^/api/']}
|
|
- {401: ['^/api/']}
|
|
- 403
|
|
- 404
|
|
- {405: ['/homepage$', '/login_check$', '/export/data$']}
|
|
channels: ["!event", "!deprecation"]
|
|
file_log:
|
|
type: stream
|
|
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
|
level: debug
|
|
formatter: monolog.formatter.kimai
|
|
console:
|
|
type: console
|
|
process_psr_3_messages: false
|
|
channels: ["!event", "!doctrine", "!deprecation"]
|
|
deprecation:
|
|
type: stream
|
|
channels: ["deprecation"]
|
|
path: "%kernel.logs_dir%/deprecations.log"
|
|
formatter: monolog.formatter.deprecation
|
|
|
|
when@test:
|
|
monolog:
|
|
handlers:
|
|
main:
|
|
type: stream
|
|
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
|
level: info
|
|
channels: ["!event"]
|
|
formatter: monolog.formatter.kimai
|