Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions cookbook/logging/monolog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ allows you to log the messages in several ways easily.

monolog:
handlers:
syslog:
applog:
type: stream
path: /var/log/symfony.log
level: error
Expand All @@ -65,7 +65,9 @@ allows you to log the messages in several ways easily.
file:
type: stream
level: debug

syslog:
type: syslog
level: error
.. code-block:: xml

<container xmlns="http://symfony.com/schema/dic/services"
Expand All @@ -76,7 +78,7 @@ allows you to log the messages in several ways easily.

<monolog:config>
<monolog:handler
name="syslog"
name="applog"
type="stream"
path="/var/log/symfony.log"
level="error"
Expand All @@ -92,6 +94,11 @@ allows you to log the messages in several ways easily.
type="stream"
level="debug"
/>
<monolog:handler
name="syslog"
type="syslog"
level="error"
/>
</monolog:config>
</container>

Expand Down