public class NTEventLogAppender extends AppenderSkeleton
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.
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
构造器和说明 |
---|
NTEventLogAppender() |
NTEventLogAppender(Layout layout) |
NTEventLogAppender(java.lang.String source) |
NTEventLogAppender(java.lang.String source,
Layout layout) |
NTEventLogAppender(java.lang.String server,
java.lang.String source) |
NTEventLogAppender(java.lang.String server,
java.lang.String source,
Layout layout) |
限定符和类型 | 方法和说明 |
---|---|
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. |
java.lang.String |
getSource() |
boolean |
requiresLayout()
The
NTEventLogAppender requires a layout. |
void |
setSource(java.lang.String source)
The Source option which names the source of the event.
|
addFilter, clearFilters, doAppend, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold
public NTEventLogAppender()
public NTEventLogAppender(java.lang.String source)
public NTEventLogAppender(java.lang.String server, java.lang.String source)
public NTEventLogAppender(Layout layout)
public NTEventLogAppender(java.lang.String source, Layout layout)
public NTEventLogAppender(java.lang.String server, java.lang.String source, Layout layout)
public void close()
Appender
It is a programming error to append to a closed appender.
public void activateOptions()
AppenderSkeleton
activateOptions
在接口中 OptionHandler
activateOptions
在类中 AppenderSkeleton
public void append(LoggingEvent event)
AppenderSkeleton
AppenderSkeleton
should implement this
method to perform actual logging. See also AppenderSkeleton.doAppend
method.append
在类中 AppenderSkeleton
public void finalize()
AppenderSkeleton
close
method.finalize
在类中 AppenderSkeleton
public void setSource(java.lang.String source)
public java.lang.String getSource()
public boolean requiresLayout()
NTEventLogAppender
requires a layout. Hence,
this method always returns true
.