org.goetz.domino.log4j
Class DominoAppender

java.lang.Object
  extended byorg.apache.log4j.AppenderSkeleton
      extended byorg.goetz.domino.log4j.AbstractAppender
          extended byorg.goetz.domino.log4j.DominoAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler
Direct Known Subclasses:
RemoteAppender, ServletAppender

public abstract class DominoAppender
extends AbstractAppender

This appender is the basis for servlet based appenders.

Author:
Bernd G?tz

Field Summary
 
Fields inherited from class org.goetz.domino.log4j.AbstractAppender
doc
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Constructor Summary
DominoAppender()
           
 
Method Summary
protected  lotus.domino.Database getDominoDatabase(lotus.domino.Session session)
           
protected  void initialize(org.apache.log4j.spi.LoggingEvent event)
          Initializes application name and path.
 
Methods inherited from class org.goetz.domino.log4j.AbstractAppender
addEvent, append, checkEntryConditions, close, getApplicationName, getDatabase, getFlushTimeout, getFormName, getLayout, getLogDocument, getMaxLines, getMessage, getServer, replace, requiresLayout, setApplicationName, setDatabase, setFlushTimeout, setFormName, setMaxLines, setMessage, setServer
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, 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

DominoAppender

public DominoAppender()
Method Detail

initialize

protected void initialize(org.apache.log4j.spi.LoggingEvent event)
                   throws lotus.domino.NotesException
Description copied from class: AbstractAppender
Initializes application name and path. This is being called only once per appender instance, in contrast to initAppend() and releaseAppend() which are being called each log append call.

Specified by:
initialize in class AbstractAppender
Throws:
lotus.domino.NotesException

getDominoDatabase

protected lotus.domino.Database getDominoDatabase(lotus.domino.Session session)
                                           throws lotus.domino.NotesException
Returns:
the Domino Database object to log to.
Throws:
lotus.domino.NotesException


Copyright © -2008 . All Rights Reserved.