|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.portal.log.MessageContext
public class 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(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(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
|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |