4
4
How to Configure Monolog to Display Console Messages
5
5
====================================================
6
6
7
- .. versionadded :: 2.3
8
- This feature was introduced to the MonologBundle in version 2.4, which
9
- was first packaged with Symfony at version 2.4 (but compatible with Symfony 2.3).
7
+ .. versionadded :: 2.4
8
+ This feature was introduced to the MonologBridge in Symfony 2.4.
10
9
11
- It is possible to use the console to print messages for certain :ref: `verbosity-levels `
12
- using the :class: `Symfony\\ Component\\ Console\\ Output\\ OutputInterface `
13
- instance that is passed when a command gets executed.
10
+ It is possible to use the console to print messages for certain
11
+ :ref: `verbosity levels <verbosity-levels >` using the
12
+ :class: `Symfony\\ Component\\ Console\\ Output\\ OutputInterface ` instance that
13
+ is passed when a command gets executed.
14
14
15
15
When a lot of logging has to happen, it's cumbersome to print information
16
16
depending on the verbosity settings (``-v ``, ``-vv ``, ``-vvv ``) because the
@@ -32,7 +32,7 @@ For example::
32
32
}
33
33
34
34
Instead of using these semantic methods to test for each of the verbosity
35
- levels, ` MonologBundle `_ 2.4 provides a `ConsoleHandler `_ that listens to
35
+ levels, the ` MonologBridge `_ provides a `ConsoleHandler `_ that listens to
36
36
console events and writes log messages to the console output depending on the
37
37
current log level and the console verbosity.
38
38
@@ -96,8 +96,9 @@ With the ``verbosity_levels`` option you can adapt the mapping between
96
96
verbosity and log level. In the given example it will also show notices in
97
97
normal verbosity mode (instead of warnings only). Additionally, it will only
98
98
use messages logged with the custom ``my_channel `` channel and it changes the
99
- display style via a custom formatter. See also the :doc: `reference/configuration/monolog `
100
- for more information:
99
+ display style via a custom formatter (see the
100
+ :doc: `MonologBundle reference </reference/configuration/monolog >` for more
101
+ information):
101
102
102
103
.. configuration-block ::
103
104
@@ -180,4 +181,4 @@ for more information:
180
181
;
181
182
182
183
.. _ConsoleHandler : https://github.com/symfony/MonologBridge/blob/master/Handler/ConsoleHandler.php
183
- .. _ MonologBundle : https://github.com/symfony/MonologBundle
184
+ .. _ MonologBridge : https://github.com/symfony/MonologBridge
0 commit comments