|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Formatter
weblogic.logging.ConsoleFormatter
Formats log messages to be displayed on the console.
This handler is associated with the ConsoleHandler which logs messages
to the Stdout. The log output in the console shows the timestamp, severity,
subsystem, id, and the message. The KernelMBean.StdoutLogStack
controls whether stack traces are included in the logged message.
The KernelMBean.StdoutFormat
attribute controls whether the
log id is included in the console logged output.
The timestamp format is DateFormat.MEDIUM for the date component
and DateFormat.FULL for the time component. The actual output format
depends on the default settings for the Locale.
This formatter is also used for NonCatalogLoggers on the client side.
KernelMBean.isStdoutLogStack()
,
KernelMBean.getStdoutFormat()
,
DateFormat
Field Summary | |
static String |
FIELD_PREFIX
|
static String |
FIELD_SUFFIX
|
Constructor Summary | |
ConsoleFormatter()
Default constructor when no LogMBean is present. |
|
ConsoleFormatter(weblogic.management.configuration.KernelMBean kernelMBean)
Deprecated. Use the constructor with the LogMBean parameter |
|
ConsoleFormatter(weblogic.management.configuration.LogMBean logMBean)
Initializes the console formatter with the configuration information in the LogMBean. |
Method Summary | |
protected void |
appendBuf(StringBuffer buf,
String str)
Deprecated. Use the appendToBuffer method instead |
protected static void |
appendToBuffer(StringBuffer buf,
String str)
Appends the string to the buffer, surrounding it with the delimiters. |
protected static void |
appendToBufferEscaped(StringBuffer buf,
String str)
Appends the string to the buffer, surrounding it with the delimiters. |
String |
format(LogRecord rec)
Formats a WLLogRecord object into a String representation. |
protected String |
formatDate(Date date)
Deprecated. Use the formatDateObject method instead |
static String |
formatDateObject(Date date)
Formats a date in the WebLogic Server log format. |
String |
toString(weblogic.logging.LogEntry logEntry)
Formats a log entry object to a string representation. |
Methods inherited from class java.util.logging.Formatter |
formatMessage, getHead, getTail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String FIELD_PREFIX
public static final String FIELD_SUFFIX
Constructor Detail |
public ConsoleFormatter()
public ConsoleFormatter(weblogic.management.configuration.KernelMBean kernelMBean)
public ConsoleFormatter(weblogic.management.configuration.LogMBean logMBean)
Method Detail |
protected void appendBuf(StringBuffer buf, String str)
buf
- The buffer to which the delimited string is to be appended.str
- The str to appended to the buffer with the delimiters.protected static final void appendToBuffer(StringBuffer buf, String str)
protected static final void appendToBufferEscaped(StringBuffer buf, String str)
public String format(LogRecord rec)
rec
- The log record that needs to be formatted.
protected String formatDate(Date date)
date
-
public static final String formatDateObject(Date date)
date
- The date to be formatted
public String toString(weblogic.logging.LogEntry logEntry)
toString
in interface weblogic.logging.LogEntryFormatter
logEntry
-
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs91 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |