Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 662 Bytes

2023-05-30-configure-log-levels-for-domain-exceptions.md

File metadata and controls

19 lines (18 loc) · 662 Bytes
title issue
Allow configuration for log level on error codes for domain exceptions
NEXT-27176

Core

  • Added \Shopware\Core\Framework\Log\Monolog\ErrorCodeLogLevelHandler to configure the log level of shopware exception based on the error code.

Upgrade information

Configurable log levels for exceptions by 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
      ...