|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.logging.LogContext
A class that encapsulates information to help determine its logging configuration in the logging framework. Specifically, a LogContext is a logging category and locale. This class is tightly coupled to the underlying implementation of the logging framework. In other words, if the underlying implementation changes, this class is likely to change.
Constructor Summary | |
LogContext()
Creates an object used to retrieve an ILogger instance for the
ROOT of the logging hierarchy and does NOT allow for localization of log
messages. |
|
LogContext(java.lang.String strContext)
Creates an object used to retrieve an ILogger instance
associated with strContext in the logging hierarchy and does
NOT allow for localization of log messages. |
|
LogContext(java.lang.String strContext,
java.util.Locale locale)
Creates an object used to retrieve an ILogger instance
associated with strContext in the logging hierarchy and does
attempts to create a ResourceBundle using
strContext and locale . |
Method Summary | |
void |
appendContext(java.lang.String strAppend)
Appends additional context information to this context in a implementation dependent manner. |
java.lang.Object |
clone()
|
void |
dumpLogContext()
|
boolean |
equals(java.lang.Object obj)
|
java.util.Locale |
getLocale()
|
LogContext |
getParent()
|
int |
hashCode()
|
static java.lang.String |
join(java.lang.String strBase,
java.lang.String strNew)
Joins strBase with strNew in a logging framework
dependent manner. |
LogContext |
subContext(java.lang.String strSubContext)
Creates a new LogContext object with this context as its base context. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public LogContext()
ILogger
instance for the
ROOT of the logging hierarchy and does NOT allow for localization of log
messages. Using the ILogger
methods that rely on a
ResourceBundle
will result in an
IllegalStateException
. If the invoker desires localization of
log messages, they should use constructor that takes a
java.util.Locale
.
public LogContext(java.lang.String strContext)
ILogger
instance
associated with strContext
in the logging hierarchy and does
NOT allow for localization of log messages. Using the ILogger
methods that rely on a ResourceBundle
will result in an
IllegalStateException
. If the invoker desires localization of
log messages, they should use constructor that takes a
java.util.Locale
.
strContext
- - identifies this context in the logging category
hierarchy.public LogContext(java.lang.String strContext, java.util.Locale locale)
ILogger
instance
associated with strContext
in the logging hierarchy and does
attempts to create a ResourceBundle
using
strContext
and locale
.
strContext
- - identifies an ILogger
instance in the
logging framework.locale
- - identifies which locale to use for localization of log
messages.ResourceBundle
for
strContext
and locale
cannot be located; make
sure the class or properties file is in the JVM's classpath.Method Detail |
public LogContext getParent()
public void appendContext(java.lang.String strAppend)
strAppend
- - additional contextual information for determining
logging configuration in the logging framework.public LogContext subContext(java.lang.String strSubContext)
strSubContext
- - additional contextual information used to identify
a new sub context below this one in the hierarchy.public final java.lang.String toString()
public final java.util.Locale getLocale()
java.util.Locale
for this; may be null.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object obj)
public int hashCode()
public void dumpLogContext()
public static java.lang.String join(java.lang.String strBase, java.lang.String strNew)
strBase
with strNew
in a logging framework
dependent manner.
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |