NullAppender

Inheritance: java.lang.Object, com.aspose.email.Appender

public final class NullAppender extends Appender

Represents a do-nothing appender.

Constructors

Constructor Description
NullAppender() Creates a new instace of NullAppender.

Methods

Method Description
append(LogEntry entry) Appends a log entry to NullAppender.
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)

NullAppender()

public NullAppender()

Creates a new instace of NullAppender.

append(LogEntry entry)

public void append(LogEntry entry)

Appends a log entry to NullAppender.

Parameters:

Parameter Type Description
entry LogEntry The entry need to log.

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:

Parameter Type Description
arg0 java.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:

Parameter Type Description
value IFormatter

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int