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.
getLogHeader() Represents start log header
getHeader() Gets the header string.
getFooter() Gest the footer string.

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.

getLogHeader()

public abstract String getLogHeader()

Represents start log header

Returns: java.lang.String

getHeader()

public abstract String getHeader()

Gets the header string.

Returns: java.lang.String

getFooter()

public abstract String getFooter()

Gest the footer string.

Returns: java.lang.String