Skip to content

Commit a5d1539

Browse files
committed
Merge remote-tracking branch 'origin/2.4' into 2.4
2 parents 16f0226 + c2b3ecd commit a5d1539

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

components/console/introduction.rst

+1-1
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
~~~~~~~~~~~~~~~~

components/process.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ and :method:`Symfony\\Component\\Process\\Process::getIncrementalErrorOutput`
4646
methods returns the new outputs since the last call.
4747

4848
.. versionadded:: 2.4
49-
The ``flushOutput()`` and ``flushErrorOutput()`` methods were added in Symfony 2.4.
49+
The ``clearOutput()`` and ``clearErrorOutput()`` methods were added in Symfony 2.4.
5050

51-
The :method:`Symfony\\Component\\Process\\Process::flushOutput` method flushes
51+
The :method:`Symfony\\Component\\Process\\Process::clearOutput` method clears
5252
the contents of the output and
53-
:method:`Symfony\\Component\\Process\\Process::flushErrorOutput` flushes
53+
:method:`Symfony\\Component\\Process\\Process::clearErrorOutput` clears
5454
the contents of the error output.
5555

5656
Getting real-time Process Output

cookbook/logging/monolog_console.rst

+11-10
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)