Skip to content

Commit 0c02ce2

Browse files
authored
Alias Monolog\Formatter\JsonFormatter instead of creating a new one
1 parent 45cb5f2 commit 0c02ce2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logging/formatter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ configure your handler to use it:
1717
services:
1818
# ...
1919
20-
Monolog\Formatter\JsonFormatter: ~
20+
Monolog\Formatter\JsonFormatter: '@monolog.formatter.json'
2121
2222
# config/packages/prod/monolog.yaml (and/or config/packages/dev/monolog.yaml)
2323
monolog:

0 commit comments

Comments
 (0)