public class ERXLogger
extends org.apache.log4j.Logger
| Modifier and Type | Class and Description |
|---|---|
static class |
ERXLogger.Factory
LoggerFactory subclass that creates ERXLogger objects instead of the
default Logger classes.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIGURE_LOGGING_WITH_SYSTEM_PROPERTIES |
static ERXLogger.Factory |
factory |
static org.apache.log4j.Logger |
log
logging supprt
|
| Constructor and Description |
|---|
ERXLogger(java.lang.String name)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
configureLogging(java.util.Properties properties)
Sets up the logging system with the given configuration in
Properties format. |
static void |
configureLoggingWithSystemProperties() |
void |
debugStackTrace(java.lang.Throwable throwable)
Dumps an Throwable's Stack trace on the appender if debugging is enabled.
|
static ERXLogger |
getERXLogger(java.lang.Class clazz)
Creates a logger for a given class object.
|
static ERXLogger |
getERXLogger(java.lang.Class clazz,
java.lang.String subTopic)
Creates a logger for the given class object plus a restricting subtopic.
|
static ERXLogger |
getERXLogger(java.lang.String name)
Main entry point for getting an Logger for a given name.
|
static org.apache.log4j.Logger |
getLogger(java.lang.Class clazz) |
static org.apache.log4j.Logger |
getLogger(java.lang.String name)
Overrides method of superclass to return a logger using our custom
Logger$Factory class.
|
addAppender, assertLog, callAppenders, debug, debug, error, error, exists, fatal, fatal, forcedLog, getAdditivity, getAllAppenders, getAppender, getChainedPriority, getCurrentCategories, getDefaultHierarchy, getEffectiveLevel, getHierarchy, getInstance, getInstance, getLevel, getLoggerRepository, getName, getParent, getPriority, getResourceBundle, getResourceBundleString, getRoot, info, info, isAttached, isDebugEnabled, isEnabledFor, isInfoEnabled, l7dlog, l7dlog, log, log, log, removeAllAppenders, removeAppender, removeAppender, setAdditivity, setLevel, setPriority, setResourceBundle, shutdown, warn, warnpublic static final java.lang.String CONFIGURE_LOGGING_WITH_SYSTEM_PROPERTIES
public static org.apache.log4j.Logger log
public static ERXLogger.Factory factory
public ERXLogger(java.lang.String name)
name - of the logging loggerpublic static ERXLogger getERXLogger(java.lang.String name)
name - to create the logger forpublic static org.apache.log4j.Logger getLogger(java.lang.String name)
log4.Logger.getLoggername - to create the logger forpublic static ERXLogger getERXLogger(java.lang.Class clazz)
clazz - Class object to create the logger forpublic static org.apache.log4j.Logger getLogger(java.lang.Class clazz)
public static ERXLogger getERXLogger(java.lang.Class clazz, java.lang.String subTopic)
a.b.Foo and you wanted to
create a logger for the subtopic 'utilities' for the class Foo then the
created logging logger would have the path:
a.b.Foo.utilities.clazz - Class object to create the logger forsubTopic - to restrict the current logger topublic static void configureLoggingWithSystemProperties()
public static void configureLogging(java.util.Properties properties)
Properties format.properties - with the logging configurationpublic void debugStackTrace(java.lang.Throwable throwable)
throwable - throwable to dumpCopyright © 2002 – 2022 Project Wonder.