BEA Systems, Inc.

com.bea.logging
Class LogMessageFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by com.bea.logging.LogMessageFormatter

Deprecated. 10.0.1.0

public class LogMessageFormatter
extends Formatter

Formats log messages to be displayed on the console.


Field Summary
static int DIAG_CTX_ID
          Deprecated.  
static int FORMATTED_DATE
          Deprecated.  
static int[] LOG_FILE_FIELDS
          Deprecated.  
static int MACHINE_NAME
          Deprecated.  
static int MESSAGE
          Deprecated.  
static int MESSAGE_ID
          Deprecated.  
static int RECORD_DELIMITER
          Deprecated.  
static int SERVER_NAME
          Deprecated.  
static int SEVERITY
          Deprecated.  
static int[] STDOUT_FIELDS
          Deprecated.  
static int SUBSYSTEM
          Deprecated.  
static int THREAD_NAME
          Deprecated.  
static int TIMESTAMP
          Deprecated.  
static int TRANSACTION_ID
          Deprecated.  
static int USER_ID
          Deprecated.  
 
Constructor Summary
LogMessageFormatter()
          Deprecated. Initializes the console formatter with the configuration information in the LogMBean.
LogMessageFormatter(int[] fieldFormat)
          Deprecated.  
 
Method Summary
protected static void appendToBuffer(StringBuffer buf, String str)
          Deprecated. Appends the string to the buffer, surrounding it with the delimiters.
 String format(LogRecord rec)
          Deprecated. Formats a WLLogRecord object into a String representation.
 int getStackTraceDepth()
          Deprecated.  
 boolean isStackTraceEnabled()
          Deprecated.  
 void setDateFormatPattern(String pattern)
          Deprecated.  
 void setMessageIdEnabled(boolean value)
          Deprecated.  
 void setStackTraceDepth(int depth)
          Deprecated.  
 void setStackTraceEnabled(boolean traceEnabled)
          Deprecated.  
 
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

RECORD_DELIMITER

public static final int RECORD_DELIMITER
Deprecated. 
See Also:
Constant Field Values

FORMATTED_DATE

public static final int FORMATTED_DATE
Deprecated. 
See Also:
Constant Field Values

SEVERITY

public static final int SEVERITY
Deprecated. 
See Also:
Constant Field Values

SUBSYSTEM

public static final int SUBSYSTEM
Deprecated. 
See Also:
Constant Field Values

MACHINE_NAME

public static final int MACHINE_NAME
Deprecated. 
See Also:
Constant Field Values

SERVER_NAME

public static final int SERVER_NAME
Deprecated. 
See Also:
Constant Field Values

THREAD_NAME

public static final int THREAD_NAME
Deprecated. 
See Also:
Constant Field Values

USER_ID

public static final int USER_ID
Deprecated. 
See Also:
Constant Field Values

TRANSACTION_ID

public static final int TRANSACTION_ID
Deprecated. 
See Also:
Constant Field Values

DIAG_CTX_ID

public static final int DIAG_CTX_ID
Deprecated. 
See Also:
Constant Field Values

TIMESTAMP

public static final int TIMESTAMP
Deprecated. 
See Also:
Constant Field Values

MESSAGE_ID

public static final int MESSAGE_ID
Deprecated. 
See Also:
Constant Field Values

MESSAGE

public static final int MESSAGE
Deprecated. 
See Also:
Constant Field Values

STDOUT_FIELDS

public static final int[] STDOUT_FIELDS
Deprecated. 

LOG_FILE_FIELDS

public static final int[] LOG_FILE_FIELDS
Deprecated. 
Constructor Detail

LogMessageFormatter

public LogMessageFormatter()
Deprecated. 
Initializes the console formatter with the configuration information in the LogMBean.

Parameters:
logMBean - The LogMBean reference which specifies some of the formatting options, that control the log output format to stdout.

LogMessageFormatter

public LogMessageFormatter(int[] fieldFormat)
Deprecated. 
Method Detail

setMessageIdEnabled

public void setMessageIdEnabled(boolean value)
Deprecated. 

setDateFormatPattern

public void setDateFormatPattern(String pattern)
Deprecated. 

setStackTraceEnabled

public void setStackTraceEnabled(boolean traceEnabled)
Deprecated. 

setStackTraceDepth

public void setStackTraceDepth(int depth)
Deprecated. 

format

public String format(LogRecord rec)
Deprecated. 
Formats a WLLogRecord object into a String representation.

Specified by:
format in class Formatter
Parameters:
rec - The log record that needs to be formatted.
Returns:
The formatted string that will be written to stdout.

appendToBuffer

protected static final void appendToBuffer(StringBuffer buf,
                                           String str)
Deprecated. 
Appends the string to the buffer, surrounding it with the delimiters.


getStackTraceDepth

public int getStackTraceDepth()
Deprecated. 

isStackTraceEnabled

public boolean isStackTraceEnabled()
Deprecated. 

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs100
Copyright 2006 BEA Systems Inc.