|
Joutsen Logging v0.5.0+22-gec3d058
|
A log handler implementation that writes log records to a stream. More...
Public Member Functions | |
| StreamHandler (Stream stream, Formatter formatter, Encoding encoding=null) | |
| Creates a new instance of Joutsen.Logging.StreamHandler. More... | |
| virtual void | Log (LogRecord record) |
| Writes a log entry using the format provided by the Joutsen.Logging.StreamHandler.Formatter. More... | |
| virtual void | Dispose () |
| Writes the remaining values to the stream before it is closed. More... | |
| void | Log (LogRecord record) |
Protected Attributes | |
| TextWriter | writer |
| The see System.IO.TextWriter that is used to write to the stream. More... | |
| bool | firstRecordWritten |
| Determines whether the first record has already been written. More... | |
Properties | |
| Stream | Stream [get, protected set] |
| The stream to write to. More... | |
| Filter | Filter [get, set] |
| An optional filter which determines if the record is handled by this handler. More... | |
| Formatter | Formatter [get, set] |
| The formatter to be used to create the log entries which are written. More... | |
| global::System.Text.Encoding | Encoding [get, set] |
| The encoding to use when writing to the stream. More... | |
| bool | AutoFlush [get, set] |
| Determines if the records written are immediately flushed by the stream. 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 implementation that writes log records to a stream.
| Joutsen.Logging.StreamHandler.StreamHandler | ( | Stream | stream, |
| Formatter | formatter, | ||
| Encoding | encoding = null |
||
| ) |
Creates a new instance of Joutsen.Logging.StreamHandler.
| stream | the stream to write to |
| formatter | the formatter to format the log entries before writing them to the stream |
| encoding | the encoding to use for writing |
|
virtual |
Writes the remaining values to the stream before it is closed.
Reimplemented in Joutsen.Logging.ConsoleHandler.
|
virtual |
Writes a log entry using the format provided by the Joutsen.Logging.StreamHandler.Formatter.
| record | the record to write |
Implements Joutsen.Logging.Handler.
Reimplemented in Joutsen.Logging.ConsoleHandler.
|
protected |
Determines whether the first record has already been written.
|
protected |
The see System.IO.TextWriter that is used to write to the stream.
|
getset |
Determines if the records written are immediately flushed by the stream.
|
getset |
The encoding to use when writing to the stream.
Implements Joutsen.Logging.Handler.
|
getset |
An optional filter which determines if the record is handled by this handler.
Implements Joutsen.Logging.Handler.
|
getset |
The formatter to be used to create the log entries which are written.
Implements Joutsen.Logging.Handler.
|
getprotected set |
The stream to write to.