Skip to content

Commit bcd4401

Browse files
committed
Add docs about all handler configs to have an overview
1 parent ade3fbf commit bcd4401

File tree

1 file changed

+119
-0
lines changed

1 file changed

+119
-0
lines changed

DependencyInjection/Configuration.php

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,125 @@
2121
* This information is solely responsible for how the different configuration
2222
* sections are normalized, and merged.
2323
*
24+
* Possible handler types and related configurations (brackets indicate optional params):
25+
*
26+
* - service:
27+
* - id
28+
*
29+
* - stream:
30+
* - path: string
31+
* - [level]: level name or int value, defaults to DEBUG
32+
* - [bubble]: bool, defaults to true
33+
*
34+
* - console:
35+
* - [verbosity_levels]: level => verbosity configuration
36+
* - [level]: level name or int value, defaults to DEBUG
37+
* - [bubble]: bool, defaults to true
38+
*
39+
* - firephp:
40+
* - [level]: level name or int value, defaults to DEBUG
41+
* - [bubble]: bool, defaults to true
42+
*
43+
* - gelf:
44+
* - publisher: {id: ...} or {hostname: ..., port: ..., chunk_size: ...}
45+
* - [level]: level name or int value, defaults to DEBUG
46+
* - [bubble]: bool, defaults to true
47+
*
48+
* - chromephp:
49+
* - [level]: level name or int value, defaults to DEBUG
50+
* - [bubble]: bool, defaults to true
51+
*
52+
* - rotating_file:
53+
* - path: string
54+
* - [max_files]: files to keep, defaults to zero (infinite)
55+
* - [level]: level name or int value, defaults to DEBUG
56+
* - [bubble]: bool, defaults to true
57+
*
58+
* - fingers_crossed:
59+
* - handler: the wrapped handler's name
60+
* - [action_level|activation_strategy]: minimum level or service id to activate the handler, defaults to WARNING
61+
* - [buffer_size]: defaults to 0 (unlimited)
62+
* - [stop_buffering]: bool to disable buffering once the handler has been activated, defaults to true
63+
* - [bubble]: bool, defaults to true
64+
*
65+
* - buffer:
66+
* - handler: the wrapped handler's name
67+
* - [buffer_size]: defaults to 0 (unlimited)
68+
* - [level]: level name or int value, defaults to DEBUG
69+
* - [bubble]: bool, defaults to true
70+
*
71+
* - group:
72+
* - members: the wrapped handlers by name
73+
* - [bubble]: bool, defaults to true
74+
*
75+
* - syslog:
76+
* - ident: string
77+
* - [facility]: defaults to LOG_USER
78+
* - [logopts]: defaults to LOG_PID
79+
* - [level]: level name or int value, defaults to DEBUG
80+
* - [bubble]: bool, defaults to true
81+
*
82+
* - swift_mailer:
83+
* - from_email: optional if email_prototype is given
84+
* - to_email: optional if email_prototype is given
85+
* - subject: optional if email_prototype is given
86+
* - [email_prototype]: service id of a message, defaults to a default message with the three fields above
87+
* - [mailer]: mailer service, defaults to mailer
88+
* - [level]: level name or int value, defaults to DEBUG
89+
* - [bubble]: bool, defaults to true
90+
*
91+
* - native_mailer:
92+
* - from_email: string
93+
* - to_email: string
94+
* - subject: string
95+
* - [level]: level name or int value, defaults to DEBUG
96+
* - [bubble]: bool, defaults to true
97+
*
98+
* - socket:
99+
* - connection_string: string
100+
* - [timeout]: float
101+
* - [connection_timeout]: float
102+
* - [persistent]: bool
103+
* - [level]: level name or int value, defaults to DEBUG
104+
* - [bubble]: bool, defaults to true
105+
*
106+
* - pushover:
107+
* - token: pushover api token
108+
* - user: user id or array of ids
109+
* - [title]: optional title for messages, defaults to the server hostname
110+
* - [level]: level name or int value, defaults to DEBUG
111+
* - [bubble]: bool, defaults to true
112+
*
113+
* - raven:
114+
* - dsn: connection string
115+
* - [level]: level name or int value, defaults to DEBUG
116+
* - [bubble]: bool, defaults to true
117+
*
118+
* - newrelic:
119+
* - [level]: level name or int value, defaults to DEBUG
120+
* - [bubble]: bool, defaults to true
121+
*
122+
* - hipchat:
123+
* - token: hipchat api token
124+
* - room: room id or name
125+
* - [notify]: defaults to false
126+
* - [nickname]: defaults to Monolog
127+
* - [level]: level name or int value, defaults to DEBUG
128+
* - [bubble]: bool, defaults to true
129+
*
130+
* - null:
131+
* - [level]: level name or int value, defaults to DEBUG
132+
* - [bubble]: bool, defaults to true
133+
*
134+
* - test:
135+
* - [level]: level name or int value, defaults to DEBUG
136+
* - [bubble]: bool, defaults to true
137+
*
138+
* - debug:
139+
* - [level]: level name or int value, defaults to DEBUG
140+
* - [bubble]: bool, defaults to true
141+
*
142+
*
24143
* @author Jordi Boggiano <[email protected]>
25144
* @author Christophe Coevoet <[email protected]>
26145
*/

0 commit comments

Comments
 (0)