|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
||||||||||
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
public class 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.CommonLogMBean logMBean)
Initializes the console formatter with the configuration information in the LogMBean. |
|
ConsoleFormatter(weblogic.management.configuration.KernelMBean kernelMBean)
Deprecated. Use the constructor with the CommonLogMBean parameter |
|
ConsoleFormatter(weblogic.management.configuration.LogMBean logMBean)
Deprecated. Use constructor with CommonLogMBean parameter |
Method Summary | |
---|---|
protected void |
appendBuf(StringBuffer buf,
String str)
Deprecated. Use the appendToBuffer method instead |
protected static void |
appendToBuffer(StringBuffer buf,
String str)
Deprecated. Use the method with the StringBuilder argument. |
protected static void |
appendToBuffer(StringBuilder buf,
String str)
Appends the string to the buffer, surrounding it with the delimiters. |
protected static void |
appendToBufferEscaped(StringBuffer buf,
String str)
Deprecated. Use the method with the StringBuilder argument. |
protected static void |
appendToBufferEscaped(StringBuilder 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(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)
kernelMBean
- The KernelMBean reference which specifies some of the formatting
options, that control the log output format to stdout.public ConsoleFormatter(weblogic.management.configuration.LogMBean logMBean)
logMBean
- The LogMBean reference which specifies some of the formatting
options, that control the log output format to stdout.public ConsoleFormatter(weblogic.management.configuration.CommonLogMBean logMBean)
logMBean
- The LogMBean reference which specifies some of the formatting
options, that control the log output format to stdout.Method Detail |
---|
public String format(LogRecord rec)
format
in class Formatter
rec
- The log record that needs to be formatted.
public String toString(LogEntry logEntry)
logEntry
-
public static final String formatDateObject(Date date)
date
- The date to be formatted
protected static final void appendToBufferEscaped(StringBuffer buf, String str)
protected static final void appendToBuffer(StringBuffer buf, String str)
protected String formatDate(Date date)
date
-
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(StringBuilder buf, String str)
protected static final void appendToBufferEscaped(StringBuilder buf, String str)
|
Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |