mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-21 20:35:17 +02:00
Fix formatting for titles
This commit is contained in:
@@ -50,8 +50,7 @@ Adding extra data in the records
|
|||||||
Monolog provides two different ways to add extra informations along the simple
|
Monolog provides two different ways to add extra informations along the simple
|
||||||
textual message.
|
textual message.
|
||||||
|
|
||||||
Using the logging context
|
### Using the logging context
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
|
|
||||||
The first way is the context, allowing to pass an array of data along the
|
The first way is the context, allowing to pass an array of data along the
|
||||||
record:
|
record:
|
||||||
@@ -66,8 +65,7 @@ Simple handlers (like the StreamHandler for instance) will simply format
|
|||||||
the array to a string but richer handlers can take advantage of the context
|
the array to a string but richer handlers can take advantage of the context
|
||||||
(FirePHP is able to display arrays in pretty way for instance).
|
(FirePHP is able to display arrays in pretty way for instance).
|
||||||
|
|
||||||
Using processors
|
### Using processors
|
||||||
~~~~~~~~~~~~~~~~
|
|
||||||
|
|
||||||
The second way is to add extra data for all records by using a processor.
|
The second way is to add extra data for all records by using a processor.
|
||||||
Processors can be any callable. They will get the record as parameter and
|
Processors can be any callable. They will get the record as parameter and
|
||||||
|
Reference in New Issue
Block a user