|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.log4j.AppenderSkeleton org.apache.log4j.nt.NTEventLogAppender
public class NTEventLogAppender
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 NTEventLogAppender.dll, NTEventLogAppender.amd64.dll, NTEventLogAppender.ia64.dll or NTEventLogAppender.x86.dll as appropriate in a directory that is on the PATH of the Windows system. Otherwise, you will get a java.lang.UnsatisfiedLinkError.
Field Summary |
---|
Fields inherited from class org.apache.log4j.AppenderSkeleton |
---|
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
Constructor Summary | |
---|---|
NTEventLogAppender()
|
|
NTEventLogAppender(Layout layout)
|
|
NTEventLogAppender(String source)
|
|
NTEventLogAppender(String source,
Layout layout)
|
|
NTEventLogAppender(String server,
String source)
|
|
NTEventLogAppender(String server,
String source,
Layout layout)
|
Method Summary | |
---|---|
void |
activateOptions()
Derived appenders should override this method if option structure requires it. |
void |
append(LoggingEvent event)
Subclasses of AppenderSkeleton should implement this
method to perform actual logging. |
void |
close()
Release any resources allocated within the appender such as file handles, network connections, etc. |
void |
finalize()
Finalize this appender by calling the derived class' close method. |
String |
getSource()
|
boolean |
requiresLayout()
The NTEventLogAppender requires a layout. |
void |
setSource(String source)
The Source option which names the source of the event. |
Methods inherited from class org.apache.log4j.AppenderSkeleton |
---|
addFilter, clearFilters, doAppend, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NTEventLogAppender()
public NTEventLogAppender(String source)
public NTEventLogAppender(String server, String source)
public NTEventLogAppender(Layout layout)
public NTEventLogAppender(String source, Layout layout)
public NTEventLogAppender(String server, String source, Layout layout)
Method Detail |
---|
public void close()
Appender
It is a programming error to append to a closed appender.
public void activateOptions()
AppenderSkeleton
activateOptions
in interface OptionHandler
activateOptions
in class AppenderSkeleton
public void append(LoggingEvent event)
AppenderSkeleton
AppenderSkeleton
should implement this
method to perform actual logging. See also AppenderSkeleton.doAppend
method.
append
in class AppenderSkeleton
public void finalize()
AppenderSkeleton
close
method.
finalize
in class AppenderSkeleton
public void setSource(String source)
public String getSource()
public boolean requiresLayout()
NTEventLogAppender
requires a layout. Hence,
this method always returns true
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |