IAppender

public interface IAppender

Implement this interface for your own strategies for printing log entries.

Methods

MethodDescription
append(LogEntry entry)Log the specified log entry in Appender specific way.
appendHeader()Starts log file with specific header.
getFormatter()Gets or sets the IFormatter.
setFormatter(IFormatter value)Gets or sets the IFormatter.

append(LogEntry entry)

public abstract void append(LogEntry entry)

Log the specified log entry in Appender specific way.

Parameters:

ParameterTypeDescription
entryLogEntryContains a log message.

appendHeader()

public abstract void appendHeader()

Starts log file with specific header.

getFormatter()

public abstract IFormatter getFormatter()

Gets or sets the IFormatter.

Returns: IFormatter

setFormatter(IFormatter value)

public abstract void setFormatter(IFormatter value)

Gets or sets the IFormatter.

Parameters:

ParameterTypeDescription
valueIFormatter