Skip to content

Commit 60c06a9

Browse files
committed
Merge pull request #2016 from rdohms/patch-2
Updating Monolog Config
2 parents b1eb34a + 7c68117 commit 60c06a9

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

cookbook/logging/monolog.rst

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ allows you to log the messages in several ways easily.
5454
5555
monolog:
5656
handlers:
57-
syslog:
57+
applog:
5858
type: stream
5959
path: /var/log/symfony.log
6060
level: error
@@ -65,7 +65,9 @@ allows you to log the messages in several ways easily.
6565
file:
6666
type: stream
6767
level: debug
68-
68+
syslog:
69+
type: syslog
70+
level: error
6971
.. code-block:: xml
7072
7173
<container xmlns="http://symfony.com/schema/dic/services"
@@ -76,7 +78,7 @@ allows you to log the messages in several ways easily.
7678
7779
<monolog:config>
7880
<monolog:handler
79-
name="syslog"
81+
name="applog"
8082
type="stream"
8183
path="/var/log/symfony.log"
8284
level="error"
@@ -92,6 +94,11 @@ allows you to log the messages in several ways easily.
9294
type="stream"
9395
level="debug"
9496
/>
97+
<monolog:handler
98+
name="syslog"
99+
type="syslog"
100+
level="error"
101+
/>
95102
</monolog:config>
96103
</container>
97104

0 commit comments

Comments
 (0)