title | issue |
---|---|
Allow configuration for log level on error codes for domain exceptions |
NEXT-27176 |
- Added
\Shopware\Core\Framework\Log\Monolog\ErrorCodeLogLevelHandler
to configure the log level of shopware exception based on the error code.
The shopware.logger.error_code_log_levels
config option was added to allow to configure different log levels based on the error code of the exception.
You can use that option as follows in your shopware.yaml:
shopware:
logger:
error_code_log_levels:
PRODUCT__CATEGORY_NOT_FOUND: notice
...