org.goetz.domino.log4j
Class AgentAppender

java.lang.Object
  extended byorg.apache.log4j.AppenderSkeleton
      extended byorg.goetz.domino.log4j.AbstractAppender
          extended byorg.goetz.domino.log4j.AgentAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class AgentAppender
extends AbstractAppender

This appender can be used in Domino Agents.

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
AgentAppender()
           
 
Method Summary
protected  lotus.domino.Database getDominoDatabase(lotus.domino.Session session)
           
protected  void initAppend()
           
protected  void initialize(org.apache.log4j.spi.LoggingEvent event)
          Initializes application name and path.
protected  void releaseAppend()
           
protected  lotus.domino.Session retrieveSession()
           
 java.lang.String retrieveUserName()
           
 
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

AgentAppender

public AgentAppender()
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

retrieveSession

protected lotus.domino.Session retrieveSession()
                                        throws lotus.domino.NotesException
Returns:
current session.
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

initAppend

protected void initAppend()
                   throws lotus.domino.NotesException
Throws:
lotus.domino.NotesException

releaseAppend

protected void releaseAppend()

retrieveUserName

public java.lang.String retrieveUserName()
                                  throws lotus.domino.NotesException
Throws:
lotus.domino.NotesException


Copyright © -2008 . All Rights Reserved.