org.goetz.domino.log4j
Class ServletAppender

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

public class ServletAppender
extends DominoAppender

This appender can be used for servlets in the Domino servlet container.

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
ServletAppender()
           
 
Method Summary
 void close()
          Closes this appender.
protected  java.lang.String getApplicationPath()
           
protected  void initAppend()
           
protected  void releaseAppend()
           
protected  lotus.domino.Session retrieveSession()
           
 java.lang.String retrieveUserName()
           
 
Methods inherited from class org.goetz.domino.log4j.DominoAppender
getDominoDatabase, initialize
 
Methods inherited from class org.goetz.domino.log4j.AbstractAppender
addEvent, append, checkEntryConditions, 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

ServletAppender

public ServletAppender()
Method Detail

retrieveSession

protected lotus.domino.Session retrieveSession()
                                        throws lotus.domino.NotesException
Returns:
current session.
Throws:
lotus.domino.NotesException

getApplicationPath

protected java.lang.String getApplicationPath()
Returns:
application path name

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

close

public void close()
Description copied from class: AbstractAppender
Closes this appender.

Specified by:
close in interface org.apache.log4j.Appender
Overrides:
close in class AbstractAppender


Copyright © -2008 . All Rights Reserved.