IFormatter

public interface IFormatter

Represents the interface for formatting log entry messsages.

Methods

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

format(LogEntry entry)

public abstract 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.

format(Date datatime)

public abstract String format(Date datatime)

Formats a datetime and return a string to be outputted.

Parameters:

Parameter Type Description
datatime java.util.Date The datetime value for formatting to string

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

getFooter()

public abstract String getFooter()

Gest the footer string.

Returns: java.lang.String

getHeader()

public abstract String getHeader()

Gets the header string.

Returns: java.lang.String

getLogHeader()

public abstract String getLogHeader()

Represents start log header

Returns: java.lang.String