IFormatter

public interface IFormatter

Represents the interface for formatting log entry messsages.

Methods

MethodDescription
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:

ParameterTypeDescription
entryLogEntryThe 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:

ParameterTypeDescription
datatimejava.util.DateThe 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