Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit60c06a9

Browse files
committed
Merge pull requestsymfony#2016 from rdohms/patch-2
Updating Monolog Config
2 parentsb1eb34a +7c68117 commit60c06a9

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
<containerxmlns="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)

[8]ページ先頭

©2009-2025 Movatter.jp