Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XSD Schema not allow %env()% syntax #481

Open
gimler opened this issue May 23, 2024 · 0 comments
Open

XSD Schema not allow %env()% syntax #481

gimler opened this issue May 23, 2024 · 0 comments

Comments

@gimler
Copy link

gimler commented May 23, 2024

I try to use

<monolog:handler
  name="file"
  type="error_log"
  level="%env(APP_LOG_LEVEL)%"
/>

error

In FileLoader.php line 174:
                                                                                                                             
[ERROR 1840] Element '{http://symfony.com/schema/dic/monolog}handler', attribute 'level': [facet 'enumeration'] The value '%env(APP_LOG_LEVEL)%' is not an element of the set {'debug', 'info', 'notice', 'warning', 'error', 'critical', 'alert', 'emergency', 'DEBUG', 'INFO', 'NOTICE', 'WARNING', 'ERROR', 'CRITICAL', 'ALERT', 'EMERGENCY', '100', '200', '250', '300', '400', '500', '550', '600'}.                                                                                                                  

see https://github.com/symfony/monolog-bundle/blob/master/Resources/config/schema/monolog-1.0.xsd#L97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant