|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.logging.LogManager
A factory for ILogger
instances. This class hides the
actual logging implemenation used by the framework.
Constructor Summary | |
LogManager()
|
Method Summary | |
static LogContext |
configure(java.lang.String strLogConfigFile,
java.lang.String strRootLogContext,
java.lang.String strMessageBundleBase,
java.util.Locale locale,
java.lang.ClassLoader classLoader)
Configures the underlying logging system with the parameters specified. |
static LogContext |
getLogContext(java.lang.Thread t)
Retrieves a log context for a thread. |
static ILogger |
getLogger()
A convenience method to retrieve a logger for the current running thread. |
static ILogger |
getLogger(LogContext context)
|
static java.util.ResourceBundle |
getResourceBundle(LogContext context)
|
static void |
mapLogContextToThread(java.lang.Thread t,
LogContext logContext)
Associates a log context with a thread. |
static java.lang.String |
report()
Generates a debugging report on the current state of the LogManager |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public LogManager()
Method Detail |
public static final LogContext configure(java.lang.String strLogConfigFile, java.lang.String strRootLogContext, java.lang.String strMessageBundleBase, java.util.Locale locale, java.lang.ClassLoader classLoader) throws java.lang.Exception
strLogConfigFile
. Developers need to call this method prior
to using any logging functions for proper logging behavior.
Developers should be aware that if more than one configuration file is used
i.e., you are running multiple apps, each with its own configuration file,
their configuration parameters will be sharing the same namespace.
It is STRONLY RECOMMENDED that you use a unique logical name as the root
category name for all categories in your application. This will prevent
one application's category names from conflicting with those of another
application.
strLogConfigFile
- - a file on the classpath available to the
supplied ClassLoader that contains LOG4J configuration information that
conforms to the LOG4J.dtd.strRootLogContext
- - the root log category for your application; this
is used as the "key" for determining if the system has been configured
correctly, i.e. it should be unique to your application.strMessageBundleBase
- - the base name for the message bundles
containing log messages for your applicationlocale
- - identifies the desired locale for displaying log messagesclassLoader
- - the ClassLoader to use to initialize log resources,
such as ResourceBundles, log configuration file, etc.public static final ILogger getLogger(LogContext context) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
context
- is a LogContext objectpublic static final java.util.ResourceBundle getResourceBundle(LogContext context)
public static final LogContext getLogContext(java.lang.Thread t) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
public static final void mapLogContextToThread(java.lang.Thread t, LogContext logContext)
public static final ILogger getLogger() throws java.lang.IllegalStateException
public static final java.lang.String report()
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |