Skip to content

Updating Monolog Config #2015

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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