[英]Symfony - suppress logging for specific endpoint
根據this ,您應該可以這樣做。
monolog:
handlers:
main:
# ...
type: fingers_crossed
handler: ...
excluded_http_codes: [{ 200: ['^/ping$'] }]
或者像這樣
monolog:
handlers:
main:
# ...
type: fingers_crossed
handler: ...
excluded_http_codes:
- urls:
- '^/ping$'
但是,我沒有測試它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.