Appender

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.email.IAppender, com.aspose.ms.System.IDisposable

public abstract class Appender implements IAppender, System.IDisposable

Represents the base class for Appender.

Methods

Method Description
appendHeader() Starts log file with specific header.
append(LogEntry entry) Appends the specified log entry to the appender.
close() Closes the appender.
initialize() Initializes the appender instance.
getFormatter() Gets or sets the formatter.
setFormatter(IFormatter value) Gets or sets the formatter.
dispose() Releases the unmanaged resources used by the Appender.

appendHeader()

public void appendHeader()

Starts log file with specific header.

append(LogEntry entry)

public abstract void append(LogEntry entry)

Appends the specified log entry to the appender.

Parameters:

Parameter Type Description
entry LogEntry The log entry.

close()

public void close()

Closes the appender.

initialize()

public void initialize()

Initializes the appender instance.

getFormatter()

public final IFormatter getFormatter()

Gets or sets the formatter.

Returns: IFormatter

setFormatter(IFormatter value)

public final void setFormatter(IFormatter value)

Gets or sets the formatter.

Parameters:

Parameter Type Description
value IFormatter

dispose()

public final void dispose()

Releases the unmanaged resources used by the Appender.