StandardFormatter

Inheritance: java.lang.Object, com.aspose.email.Formatter

public class StandardFormatter extends Formatter

Represents the class for formatting log entry messsages.

Constructors

Constructor Description
StandardFormatter() Initializes a new instance of the StandardFormatter class.
StandardFormatter(StringBuilder headerText) Initializes a new instance of the StandardFormatter class.
StandardFormatter(String headerText) Initializes a new instance of the StandardFormatter class.

Methods

Method Description
format(LogEntry entry) Formats a log entry and return a string to be outputted.
getHeader() Gets the log header.
getFooter() Gest the footer string.

StandardFormatter()

public StandardFormatter()

Initializes a new instance of the StandardFormatter class.

StandardFormatter(StringBuilder headerText)

public StandardFormatter(StringBuilder headerText)

Initializes a new instance of the StandardFormatter class.

Parameters:

Parameter Type Description
headerText java.lang.StringBuilder The header text.

StandardFormatter(String headerText)

public StandardFormatter(String headerText)

Initializes a new instance of the StandardFormatter class.

Parameters:

Parameter Type Description
headerText java.lang.String The header text.

format(LogEntry entry)

public String format(LogEntry entry)

Formats a log entry and return a string to be outputted.

Parameters:

Parameter Type Description
entry LogEntry The Log entry to format.

Returns: java.lang.String - String representing the log entry.

getHeader()

public String getHeader()

Gets the log header.

Value:

Returns: java.lang.String

getFooter()

public String getFooter()

Gest the footer string.

Returns: java.lang.String