org.apache.log4j.nt

Class NTEventLogAppender

public class NTEventLogAppender extends AppenderSkeleton

Append to the NT event log system.

WARNING This appender can only be installed and used on a Windows system.

Do not forget to place the file NTEventLogAppender.dll in a directory that is on the PATH of the Windows system. Otherwise, you will get a java.lang.UnsatisfiedLinkError.

Author: Chris Taylor Jim Cakalic

Constructor Summary
NTEventLogAppender()
NTEventLogAppender(String source)
NTEventLogAppender(String server, String source)
NTEventLogAppender(Layout layout)
NTEventLogAppender(String source, Layout layout)
NTEventLogAppender(String server, String source, Layout layout)
Method Summary
voidactivateOptions()
voidappend(LoggingEvent event)
voidclose()
voidfinalize()
StringgetSource()
booleanrequiresLayout()
The NTEventLogAppender requires a layout.
voidsetSource(String source)
The Source option which names the source of the event.

Constructor Detail

NTEventLogAppender

public NTEventLogAppender()

NTEventLogAppender

public NTEventLogAppender(String source)

NTEventLogAppender

public NTEventLogAppender(String server, String source)

NTEventLogAppender

public NTEventLogAppender(Layout layout)

NTEventLogAppender

public NTEventLogAppender(String source, Layout layout)

NTEventLogAppender

public NTEventLogAppender(String server, String source, Layout layout)

Method Detail

activateOptions

public void activateOptions()

append

public void append(LoggingEvent event)

close

public void close()

finalize

public void finalize()

getSource

public String getSource()

requiresLayout

public boolean requiresLayout()
The NTEventLogAppender requires a layout. Hence, this method always returns true.

setSource

public void setSource(String source)
The Source option which names the source of the event. The current value of this constant is Source.
Copyright 2000-2005 Apache Software Foundation.