|
Joutsen Logging v0.5.0+22-gec3d058
|
A log handler that buffers records until a record with a certain level is encountered which causes the entire buffer to be flushed to another handler. More...
Public Member Functions | |
| BufferedHandler (int bufferSize, Handler outputHandler, LogLevel outputTriggerLevel) | |
| Creates a new instance. More... | |
| void | Dispose () |
| void | Log (LogRecord record) |
| void | Log (LogRecord record) |
Protected Member Functions | |
| void | FlushBuffer () |
| Passes all buffered records to the outputHandler and clears the buffer. More... | |
Properties | |
| Handler | OutputHandler [get] |
| The handler that will write out the buffered records. More... | |
| LogLevel | OutputTriggerLevel [get] |
| The log level that will cause the buffer to be flushed. More... | |
| int | BufferSize [get] |
| The size of the record buffer. More... | |
| Filter | Filter [get, set] |
| An optional filter which determines if the record is handled by this handler. More... | |
| Formatter | Formatter [get, set] |
| he formatter to be used to create the log entries which are written. More... | |
| Encoding | Encoding [get, set] |
| The encoding of the output. More... | |
Properties inherited from Joutsen.Logging.Handler | |
| Filter | Filter [get, set] |
| An optional filter which determines if the record is handled by this handler. More... | |
| Formatter | Formatter [get, set] |
| he formatter to be used to create the log entries which are written. More... | |
| Encoding | Encoding [get, set] |
| The encoding of the output. More... | |
A log handler that buffers records until a record with a certain level is encountered which causes the entire buffer to be flushed to another handler.
| Joutsen.Logging.BufferedHandler.BufferedHandler | ( | int | bufferSize, |
| Handler | outputHandler, | ||
| LogLevel | outputTriggerLevel | ||
| ) |
Creates a new instance.
| bufferSize | the number of records to buffer |
| outputHandler | the handler to pass the buffered records to |
| outputTriggerLevel | the log level that triggers a flush of the buffer |
| void Joutsen.Logging.BufferedHandler.Dispose | ( | ) |
|
protected |
Passes all buffered records to the outputHandler and clears the buffer.
| void Joutsen.Logging.BufferedHandler.Log | ( | LogRecord | record | ) |
Implements Joutsen.Logging.Handler.
|
get |
The size of the record buffer.
|
getset |
The encoding of the output.
Implements Joutsen.Logging.Handler.
|
getset |
An optional filter which determines if the record is handled by this handler.
Implements Joutsen.Logging.Handler.
|
getset |
he formatter to be used to create the log entries which are written.
Implements Joutsen.Logging.Handler.
|
get |
The handler that will write out the buffered records.
|
get |
The log level that will cause the buffer to be flushed.