com.raritantechnologies.searchApp.logging
Class Log4JLogger
java.lang.Object
com.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Log4JLogger
public Log4JLogger()
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