Skip to content

Commit 497a086

Browse files
Using param()
1 parent b1348c1 commit 497a086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logging/channels_handlers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ from the ``security`` channel. The following example does that only in the
8484
if ('prod' === $container->env()) {
8585
$monolog->handler('security')
8686
->type('stream')
87-
->path('%kernel.logs_dir%/security.log')
87+
->path(param('kernel.logs_dir') . \DIRECTORY_SEPARATOR . 'security.log')
8888
->channels()->elements(['security']);
8989
9090
$monolog->handler('main')

0 commit comments

Comments
 (0)