Skip to content

Commit 44a963f

Browse files
committed
Merge branch '2.0' into 2.1
Conflicts: components/locale.rst
2 parents a6a8d90 + ede4db7 commit 44a963f

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
@@ -55,7 +55,7 @@ allows you to log the messages in several ways easily.
5555
# app/config/config*.yml
5656
monolog:
5757
handlers:
58-
syslog:
58+
applog:
5959
type: stream
6060
path: /var/log/symfony.log
6161
level: error
@@ -66,7 +66,9 @@ allows you to log the messages in several ways easily.
6666
file:
6767
type: stream
6868
level: debug
69-
69+
syslog:
70+
type: syslog
71+
level: error
7072
.. code-block:: xml
7173
7274
<container xmlns="http://symfony.com/schema/dic/services"
@@ -77,7 +79,7 @@ allows you to log the messages in several ways easily.
7779
7880
<monolog:config>
7981
<monolog:handler
80-
name="syslog"
82+
name="applog"
8183
type="stream"
8284
path="/var/log/symfony.log"
8385
level="error"
@@ -93,6 +95,11 @@ allows you to log the messages in several ways easily.
9395
type="stream"
9496
level="debug"
9597
/>
98+
<monolog:handler
99+
name="syslog"
100+
type="syslog"
101+
level="error"
102+
/>
96103
</monolog:config>
97104
</container>
98105

0 commit comments

Comments
 (0)