org.goetz.domino.log4j
Class RemoteAppender

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.RemoteAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class RemoteAppender
extends DominoAppender

This appender can be used outside of the Domino JVM, e.g. in a Tomcat or in a Websphere Application Server 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
RemoteAppender()
           
 
Method Summary
protected  java.lang.String getApplicationPath()
          Returns the string "Servlet"
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()
           
 void setConnectPassword(java.lang.String userPassword)
          Sets the user password.
 void setConnectUserName(java.lang.String userName)
          Sets the user name.
 
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

RemoteAppender

public RemoteAppender()
Method Detail

setConnectUserName

public void setConnectUserName(java.lang.String userName)
Sets the user name.


setConnectPassword

public void setConnectPassword(java.lang.String userPassword)
Sets the user password.


retrieveSession

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

getApplicationPath

protected java.lang.String getApplicationPath()
Returns the string "Servlet"

Returns:
application path name

getDominoDatabase

protected lotus.domino.Database getDominoDatabase(lotus.domino.Session session)
                                           throws lotus.domino.NotesException
Overrides:
getDominoDatabase in class DominoAppender
Throws:
lotus.domino.NotesException

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.

Overrides:
initialize in class DominoAppender
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()


Copyright © -2008 . All Rights Reserved.