com.raritantechnologies.searchApp.logging
Class Log4JLogger

java.lang.Object
  extended bycom.raritantechnologies.searchApp.logging.Log4JLogger
All Implemented Interfaces:
IConfigurable

public class Log4JLogger
extends java.lang.Object
implements IConfigurable

General purpose logger - initiates a Log4J Logger instance.

XML Configuration Template:
  <SystemObjects>
   <SystemObject type="Log4JLogger" name="theLoggerName"
            configurableClass="com.raritantechnologies.searchApp.logging.Logger" >

     <!-- Configure Log4J Logger -->
     <LogConfigurator loggerName="loggerName" >
       <log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>

       </log4j:configuration>
     </LogConfigurator>

     <!-- Depending on usage can have one or more of these formatters -->
     <RequestFormatter formatterClass="[an instance of IRequestFormatter]" >

     </RequestFormatter>

     <QueryFormatter formatterClass="[an instance of IQueryFormatter]" >

     </QueryFormatter>

     <ResultRenderer rendererClass="[an instance of IResultRenderer]" >

     </ResultRenderer>

   </SystemObject>
  </SystemObjects>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Field Summary
static boolean DEBUG
           
static java.lang.String SYSTEM_OBJECT_TYPE
           
 
Constructor Summary
Log4JLogger()
           
 
Method Summary
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void logQuery(QueryResultBean query)
           
 void logQuery(RaritanPageContext pageContext)
           
 void logRequest(RaritanPageContext pageContext)
           
 void logResult(RaritanPageContext pageContext, IResult result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_OBJECT_TYPE

public static final java.lang.String SYSTEM_OBJECT_TYPE
See Also:
Constant Field Values

DEBUG

public static final boolean DEBUG
See Also:
Constant Field Values
Constructor Detail

Log4JLogger

public Log4JLogger()
Method Detail

logRequest

public void logRequest(RaritanPageContext pageContext)

logQuery

public void logQuery(RaritanPageContext pageContext)

logQuery

public void logQuery(QueryResultBean query)

logResult

public void logResult(RaritanPageContext pageContext,
                      IResult result)

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable