|
Joutsen Logging v0.5.0+22-gec3d058
|
A class that defines a Joutsen.Logging.IFormatter that formats log entries as XML file records. More...
Public Member Functions | |
| XmlFormatter (bool prettyPrint=false) | |
| Creates a new instance of the formatter. More... | |
| string | Format (LogRecord record) |
| Creates a XML representation of the @paramref record. More... | |
| string | GetHeader (global::System.Text.Encoding encoding) |
| Creates the XML declaration and the root element of the XML log. More... | |
| string | GetSeparator () |
| Creates a separator that is to be written between records. More... | |
| string | GetTail () |
| Closes the root element of the XML log. More... | |
Public Member Functions inherited from Joutsen.Logging.Formatter | |
| 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... | |
Properties | |
| bool | IsPrettyPrinted [get] |
| Determines if the output of this formatter is pretty printed with indentation and line breaks. More... | |
A class that defines a Joutsen.Logging.IFormatter that formats log entries as XML file records.
| Joutsen.Logging.XmlFormatter.XmlFormatter | ( | bool | prettyPrint = false | ) |
Creates a new instance of the formatter.
| IsPrettyPrint | Determines if the output should be pretty printed. Optional, default is false. |
| string Joutsen.Logging.XmlFormatter.Format | ( | LogRecord | record | ) |
Creates a XML representation of the @paramref record.
| record | the record to create a formatted string from |
Implements Joutsen.Logging.Formatter.
| string Joutsen.Logging.XmlFormatter.GetHeader | ( | global::System.Text.Encoding | encoding | ) |
Creates the XML declaration and the root element of the XML log.
| encoding | information about the encoding that will be used to write log entries @retruns a Sytem.String representing the XML declaration and the root element of the XML log |
| string Joutsen.Logging.XmlFormatter.GetSeparator | ( | ) |
Creates a separator that is to be written between records.
Implements Joutsen.Logging.Formatter.
| string Joutsen.Logging.XmlFormatter.GetTail | ( | ) |
Closes the root element of the XML log.
Implements Joutsen.Logging.Formatter.
|
get |
Determines if the output of this formatter is pretty printed with indentation and line breaks.