mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-21 16:46:11 +02:00
Update README
This commit is contained in:
13
README.mdown
13
README.mdown
@@ -175,8 +175,10 @@ Handlers
|
|||||||
when it happens you will have the full information, including debug and info
|
when it happens you will have the full information, including debug and info
|
||||||
records. This provides you with all the information you need, but only when
|
records. This provides you with all the information you need, but only when
|
||||||
you need it.
|
you need it.
|
||||||
- _NullHandler_: Any record it can handle will be thrown away. This can be used
|
- _WhatFailureGroupHandler_: This handler extends the _GroupHandler_ ignoring
|
||||||
to put on top of an existing handler stack to disable it temporarily.
|
exceptions raised by each child handler. This allows you to ignore issues
|
||||||
|
where a remote tcp connection may have died but you do not want your entire
|
||||||
|
application to crash and may wish to continue to log to other handlers.
|
||||||
- _BufferHandler_: This handler will buffer all the log records it receives
|
- _BufferHandler_: This handler will buffer all the log records it receives
|
||||||
until `close()` is called at which point it will call `handleBatch()` on the
|
until `close()` is called at which point it will call `handleBatch()` on the
|
||||||
handler it wraps with all the log messages at once. This is very useful to
|
handler it wraps with all the log messages at once. This is very useful to
|
||||||
@@ -188,12 +190,11 @@ Handlers
|
|||||||
to the wrapped handler.
|
to the wrapped handler.
|
||||||
- _SamplingHandler_: Wraps around another handler and lets you sample records
|
- _SamplingHandler_: Wraps around another handler and lets you sample records
|
||||||
if you only want to store some of them.
|
if you only want to store some of them.
|
||||||
|
- _NullHandler_: Any record it can handle will be thrown away. This can be used
|
||||||
|
to put on top of an existing handler stack to disable it temporarily.
|
||||||
|
- _PsrHandler_: Can be used to forward log records to an existing PSR-3 logger
|
||||||
- _TestHandler_: Used for testing, it records everything that is sent to it and
|
- _TestHandler_: Used for testing, it records everything that is sent to it and
|
||||||
has accessors to read out the information.
|
has accessors to read out the information.
|
||||||
- _WhatFailureGroupHandler_: This handler extends the _GroupHandler_ ignoring
|
|
||||||
exceptions raised by each child handler. This allows you to ignore issues
|
|
||||||
where a remote tcp connection may have died but you do not want your entire
|
|
||||||
application to crash and may wish to continue to log to other handlers.
|
|
||||||
|
|
||||||
Formatters
|
Formatters
|
||||||
----------
|
----------
|
||||||
|
Reference in New Issue
Block a user