Class Formatter

Formatter class

Represents the interface for formatting log entry messsages.

public abstract class Formatter : IFormatter

Properties

NameDescription
virtual Footer { get; }Gets or sets the footer.
virtual Header { get; }Gets or sets the header.
virtual LogHeader { get; }Gets or sets the log header
static DefaultFormatter { get; set; }Gets or sets default formatter

Methods

NameDescription
virtual Format(DateTime)Formats a datetime and return a string to be outputted.
virtual Format(LogEntry)Formats a log entry and return a string to be outputted.

See Also