SimpleFormatter Class

Represents the default implementation of IFormatter interface.
Inheritance Hierarchy

Namespace:  Aspose.Email.Tools.Logging
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.11
Syntax
public sealed class SimpleFormatter : Formatter

The SimpleFormatter type exposes the following members.

Constructors
  NameDescription
Public methodSimpleFormatter
Creates a new SimpleFormatter instance.
Public methodSimpleFormatter(String, String)
Creates a new SimpleFormatter instance.
Properties
  NameDescription
Public propertyFooter
Gets or sets the footer.
(Inherited from Formatter.)
Public propertyHeader
Gets or sets the header.
(Inherited from Formatter.)
Public propertyLogHeader
Gets or sets the log header
(Inherited from Formatter.)
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFormat(DateTime)
Formats a datetime and return a string to be outputted.
(Overrides FormatterFormat(DateTime).)
Public methodFormat(LogEntry)
Formats a log entry and return a string to be outputted.
(Overrides FormatterFormat(LogEntry).)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also