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

MethodDescription
append(LogEntry entry)Appends the specified log entry to the appender.
appendHeader()Starts log file with specific header.
close()Closes the appender.
dispose()Releases the unmanaged resources used by the Appender.
equals(Object arg0)
getClass()
getFormatter()Gets or sets the formatter.
hashCode()
initialize()Initializes the appender instance.
notify()
notifyAll()
setFormatter(IFormatter value)Gets or sets the formatter.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

append(LogEntry entry)

public abstract void append(LogEntry entry)

Appends the specified log entry to the appender.

Parameters:

ParameterTypeDescription
entryLogEntryThe log entry.

appendHeader()

public void appendHeader()

Starts log file with specific header.

close()

public void close()

Closes the appender.

dispose()

public final void dispose()

Releases the unmanaged resources used by the Appender.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getFormatter()

public final IFormatter getFormatter()

Gets or sets the formatter.

Returns: IFormatter

hashCode()

public native int hashCode()

Returns: int

initialize()

public void initialize()

Initializes the appender instance.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setFormatter(IFormatter value)

public final void setFormatter(IFormatter value)

Gets or sets the formatter.

Parameters:

ParameterTypeDescription
valueIFormatter

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int