|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rhi.architecture.logging.LogFactory
com.rhi.architecture.logging.BasicLog4JFactory
The Log4JFactory/Log4JLogger are holdovers from a specific system that required some special configuration. These special settings complicated the usage pattern, and so this class has been provided for other users who wish to use Log4j, but dont' want/need to inherit the baggage from that system. It performs only the absolute minimum configuration & leaves everything else up to Log4j itself.
Field Summary | |
static java.lang.String |
LOG4J_DEFAULTCATEGORY
the default category to use when logging. |
static java.lang.String |
LOG4J_PROPERTYFILE
config entry specifying the log4j configuration file to use. |
Fields inherited from class com.rhi.architecture.logging.LogFactory |
KEY |
Constructor Summary | |
BasicLog4JFactory()
default constructor - protected |
Method Summary | |
void |
close()
Perform any required cleanup. |
Logger |
getDefaultLogger()
Get default logger. |
Logger |
getLogger(java.lang.String type)
Get a logger instance for the provided type. |
protected java.util.Properties |
getProperties()
Returns the properties. |
void |
init(java.util.Properties p)
Perform whatever initialization is required of the resource. |
protected boolean |
isLoaded()
Returns the loaded. |
Methods inherited from class com.rhi.architecture.logging.LogFactory |
getFactory, getLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String LOG4J_PROPERTYFILE
public static final java.lang.String LOG4J_DEFAULTCATEGORY
Constructor Detail |
public BasicLog4JFactory()
Method Detail |
public void init(java.util.Properties p) throws InitializationException
p
-
InitializationException
protected java.util.Properties getProperties()
public void close()
public Logger getLogger(java.lang.String type) throws ConfigurationException
LogFactory
getLogger
in class LogFactory
type
-
ConfigurationException
LogFactory.getLogger(String)
public Logger getDefaultLogger() throws ConfigurationException
getDefaultLogger
in class LogFactory
ConfigurationException
protected boolean isLoaded()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |