Skip to content

Commit 9adb904

Browse files
Jozef PistejRastusik
authored andcommitted
docs(debug-log): Updated debug log processor info for Symfony ^6.4
1 parent 8b49203 commit 9adb904

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/docker-usage.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ services:
5252

5353
This way you'll have logs locally in `var/logs/swoole_*.log` file and printed to `stdout` while running in docker.
5454

55+
### Debug log configuration
56+
57+
To enable debug log processor when Symfony is run from CLI set env variable `APP_RUNTIME_MODE: 'web=1'`, or parameter `kernel.runtime_mode.web: true` (Since Symfony ^6.4).
58+
Without debug log processor, there are no logs being shown in the symfony profiler.
59+
5560
## Recommended Dockerfile
5661

5762
Features:

src/Bridge/Symfony/Bundle/DependencyInjection/CompilerPass/DebugLogProcessorPass.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* Without debug log processor, there are no logs being shown in the symfony profiler. This override
1414
* replaces the original configurator for 'monolog.logger_prototype' with a custom one, which removes
1515
* the debug log processor only when being run from PHPDBG.
16+
* Since Symfony 6.4, use env variable `APP_RUNTIME_MODE: 'web=1'`, or parameter `kernel.runtime_mode.web: true`.
1617
*/
1718
final class DebugLogProcessorPass implements CompilerPassInterface
1819
{

0 commit comments

Comments
 (0)