|
Joutsen Logging v0.5.0+22-gec3d058
|
Defines the interface for classes that determine the output format of log records. More...
Public Member Functions | |
| String | Format (LogRecord record) |
| Creates a formated string representation of the @paramref record which can be written. More... | |
| String | GetHeader (Encoding encoding) |
| Creates the header that is to be written before the first record is written. More... | |
| String | GetTail () |
| Creates additional information that is written after the last record. More... | |
| String | GetSeparator () |
| Creates a separator that is to be written between records. More... | |
Defines the interface for classes that determine the output format of log records.
| String Joutsen.Logging.Formatter.Format | ( | LogRecord | record | ) |
Creates a formated string representation of the @paramref record which can be written.
| record | the record to create a formatted string from |
Implemented in Joutsen.Logging.CsvFormatter, Joutsen.Logging.JsonFormatter, Joutsen.Logging.SimpleFormatter, and Joutsen.Logging.XmlFormatter.
| String Joutsen.Logging.Formatter.GetHeader | ( | Encoding | encoding | ) |
Creates the header that is to be written before the first record is written.
| encoding | information about the encoding that will be used to write log entries. This is just an information that can be written to the header if necessary. Ususally formatters do not need to encode their results because that is the handlers job. |
| String Joutsen.Logging.Formatter.GetSeparator | ( | ) |
Creates a separator that is to be written between records.
Implemented in Joutsen.Logging.CsvFormatter, Joutsen.Logging.JsonFormatter, Joutsen.Logging.SimpleFormatter, and Joutsen.Logging.XmlFormatter.
| String Joutsen.Logging.Formatter.GetTail | ( | ) |
Creates additional information that is written after the last record.
Implemented in Joutsen.Logging.CsvFormatter, Joutsen.Logging.JsonFormatter, Joutsen.Logging.SimpleFormatter, and Joutsen.Logging.XmlFormatter.