public abstract class Appender extends Object implements IAppender, com.aspose.ms.System.IDisposable
Represents the base class for Appender.
Modifier | Constructor and Description |
---|---|
protected |
Appender()
Inistializes a new instance of Appender class.
|
protected |
Appender(IFormatter formatter)
Inistializes a new instance of Appender class.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
append(LogEntry entry)
Appends the specified log entry to the appender.
|
void |
appendHeader()
Starts log file with specific header.
|
void |
close()
Closes the appender.
|
void |
dispose()
Releases the unmanaged resources used by the Appender.
|
protected void |
dispose(boolean disposing)
Releases the unmanaged resources used by the Appender, and optionally disposes of the managed resources.
|
protected void |
finalize()
Frees resources used by the Appender class.
|
protected boolean |
getClosed()
Indicates whether an Appender is closed.
|
IFormatter |
getFormatter()
Gets or sets the formatter.
|
protected boolean |
getInitialized()
Indicates whether an Appender is initialized.
|
void |
initialize()
Initializes the appender instance.
|
void |
setFormatter(IFormatter value)
Gets or sets the formatter.
|
protected Appender()
Inistializes a new instance of Appender class.
protected Appender(IFormatter formatter)
Inistializes a new instance of Appender class.
formatter
- The IFormatter.public void appendHeader()
Starts log file with specific header.
appendHeader
in interface IAppender
public abstract void append(LogEntry entry)
Appends the specified log entry to the appender.
public void close()
Closes the appender.
protected final boolean getInitialized()
Indicates whether an Appender is initialized.
public void initialize()
Initializes the appender instance.
protected final boolean getClosed()
Indicates whether an Appender is closed.
public final IFormatter getFormatter()
Gets or sets the formatter.
getFormatter
in interface IAppender
public final void setFormatter(IFormatter value)
Gets or sets the formatter.
setFormatter
in interface IAppender
public final void dispose()
Releases the unmanaged resources used by the Appender.
dispose
in interface com.aspose.ms.System.IDisposable
protected void dispose(boolean disposing)
Releases the unmanaged resources used by the Appender, and optionally disposes of the managed resources.
disposing
- true to release both managed and unmanaged resources; false to releases only unmanaged resources.