8000 `%env(VAR)%` does not work with `symfony/monolog-bridge` · Issue #24368 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
%env(VAR)% does not work with symfony/monolog-bridge #24368
Closed
@zerkms

Description

@zerkms

The latest stable symfony/monolog-bridge v3.3.9 does not work with %env(...)% properly:

It throws

Warning: constant(): Couldn't find constant Monolog\Logger::ENV_FOO_E6B45FD60EEE44A71EEAF8C53561891E

for the following config:

    'main' => [
        'type' => 'stream',
        'path' => '%kernel.logs_dir%/%kernel.environment%.log'
65AA
,
        'level' => '%env(FOO)%',
        'channels' => ['!event'],
    ],

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0