|
OracleAS PDK for Java 9.0.4.0.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.portal.log.MessageContext
MessageContext is a logging utility class that accepts context information you want included with each log message and formats messages for output.
This class accepts any number of NameValue
objects that represent the context information. The context string is
constructed by appending the context information together in a format
defined by the implementation. The format used by the base implementation is
[<name1>=<value1>, <name2>=<value2>...]
| Constructor Summary | |
MessageContext(oracle.portal.utils.NameValue[] contextEntries)
Constructor. |
|
| Method Summary | |
java.lang.String |
formatMessage(java.lang.String msg)
Formats a message by adding context information prior to logging. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MessageContext(oracle.portal.utils.NameValue[] contextEntries)
NameValue when constructing the context
message.
contextEntries - an array of NameValue objects
representing the context information.| Method Detail |
public java.lang.String formatMessage(java.lang.String msg)
msg - the message that needs to be logged
|
OracleAS PDK for Java 9.0.4.0.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||