Skip to content

Commit ebab375

Browse files
committed
Minor reword
1 parent 426784e commit ebab375

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

logging/processors.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
How to Add extra Data to Log Messages via a Processor
22
=====================================================
33

4-
Monolog allows you to process every record before logging it by adding some
4+
`Monolog`_ allows you to process every record before logging it by adding some
55
extra data. This is the role of a processor, which can be applied for the whole
66
handler stack or only for a specific handler or channel.
77

@@ -30,8 +30,7 @@ using a processor::
3030
$this->session = $session;
3131
}
3232

33-
// This method is called for each log record and process it.
34-
// Keep it optimized process, to not introduce any overhead.
33+
// this method is called for each log record; optimize it to not hurt performance
3534
public function __invoke(array $record)
3635
{
3736
if (!$this->session->isStarted()) {
@@ -186,8 +185,10 @@ Symfony's MonologBridge provides processors that can be registered inside your a
186185
The ``RouteProcessor`` and the ``ConsoleCommandProcessor`` were introduced
187186
in Symfony 4.3.
188187

189-
Monolog_ also have built in processors ready to use inside your application.
190-
Read the librairy documentation to learn more.
188+
.. seealso::
189+
190+
Check out the `built-in Monolog processors`_ to learn more about how to
191+
create these processors.
191192

192193
Registering Processors per Handler
193194
----------------------------------
@@ -277,4 +278,5 @@ the ``monolog.processor`` tag:
277278
->register(SessionRequestProcessor::class)
278279
->addTag('monolog.processor', ['channel' => 'main']);
279280
280-
.. _Monolog: https://github.com/Seldaek/monolog
281+
.. _`Monolog`: https://github.com/Seldaek/monolog
282+
.. _`built-in Monolog processors`: https://github.com/Seldaek/monolog/tree/master/src/Monolog/Processor

0 commit comments

Comments
 (0)