Skip to content

Commit c2b3ecd

Browse files
committed
Merge pull request #3403 from xabbuh/issue-2939
clarify that the ConsoleHandler was added to the MonologBridge and not t...
2 parents 257ee78 + 04890d7 commit c2b3ecd

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

components/console/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ You can also set these colors and options inside the tagname::
160160
// bold text on a yellow background
161161
$output->writeln('<bg=yellow;options=bold>foo</bg=yellow;options=bold>');
162162

163-
.. verbosity-levels:
163+
.. _verbosity-levels:
164164

165165
Verbosity Levels
166166
~~~~~~~~~~~~~~~~

cookbook/logging/monolog_console.rst

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
How to Configure Monolog to Display Console Messages
55
====================================================
66

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.
109

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.
1414

1515
When a lot of logging has to happen, it's cumbersome to print information
1616
depending on the verbosity settings (``-v``, ``-vv``, ``-vvv``) because the
@@ -32,7 +32,7 @@ For example::
3232
}
3333

3434
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
3636
console events and writes log messages to the console output depending on the
3737
current log level and the console verbosity.
3838

@@ -96,8 +96,9 @@ With the ``verbosity_levels`` option you can adapt the mapping between
9696
verbosity and log level. In the given example it will also show notices in
9797
normal verbosity mode (instead of warnings only). Additionally, it will only
9898
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):
101102

102103
.. configuration-block::
103104

@@ -180,4 +181,4 @@ for more information:
180181
;
181182
182183
.. _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

Comments
 (0)