Save This Page
Home » apache-log4j-1.2.15 » org.apache » log4j » nt » [javadoc | source]
org.apache.log4j.nt
public class: NTEventLogAppender [javadoc | source]
java.lang.Object
   org.apache.log4j.AppenderSkeleton
      org.apache.log4j.nt.NTEventLogAppender

All Implemented Interfaces:
    OptionHandler, Appender

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.

Fields inherited from org.apache.log4j.AppenderSkeleton:
layout,  name,  threshold,  errorHandler,  headFilter,  tailFilter,  closed
Constructor:
 public NTEventLogAppender() 
 public NTEventLogAppender(String source) 
 public NTEventLogAppender(Layout layout) 
 public NTEventLogAppender(String server,
    String source) 
 public NTEventLogAppender(String source,
    Layout layout) 
 public NTEventLogAppender(String server,
    String source,
    Layout layout) 
Method from org.apache.log4j.nt.NTEventLogAppender Summary:
activateOptions,   append,   close,   finalize,   getSource,   requiresLayout,   setSource
Methods from org.apache.log4j.AppenderSkeleton:
activateOptions,   addFilter,   append,   clearFilters,   doAppend,   finalize,   getErrorHandler,   getFilter,   getFirstFilter,   getLayout,   getName,   getThreshold,   isAsSevereAsThreshold,   setErrorHandler,   setLayout,   setName,   setThreshold
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.nt.NTEventLogAppender Detail:
 public  void activateOptions() 
 public  void append(LoggingEvent event) 
 public  void close() 
 public  void finalize() 
 public String getSource() 
 public boolean requiresLayout() 
    The NTEventLogAppender requires a layout. Hence, this method always returns true.
 public  void setSource(String source) 
    The Source option which names the source of the event. The current value of this constant is Source.