BEA Systems, Inc.

BEA WebLogic Server 9.1 API Reference


weblogic.logging
Class LogFileFormatter

java.lang.Object
  extended byjava.util.logging.Formatter
      extended byweblogic.logging.ConsoleFormatter
          extended byweblogic.logging.LogFileFormatter
All Implemented Interfaces:
weblogic.logging.LogEntryFormatter

public final class LogFileFormatter
extends ConsoleFormatter
implements weblogic.logging.LogEntryFormatter

Formats log messages to be written to the server log file. The server side log files include fields in addition to the client log files, like machine name, server name, user and transactions id.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

Field Summary
static String BEGIN_MARKER
           
 
Fields inherited from class weblogic.logging.ConsoleFormatter
FIELD_PREFIX, FIELD_SUFFIX
 
Constructor Summary
LogFileFormatter()
          Default constructor.
 
Method Summary
 String format(LogRecord rec)
          Formats a log record for publishing to the server or domain log files.
 String toString(weblogic.logging.LogEntry logEntry)
          Formats a log entry object to a string representation.
 
Methods inherited from class weblogic.logging.ConsoleFormatter
appendBuf, appendToBuffer, appendToBufferEscaped, formatDate, formatDateObject
 
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

BEGIN_MARKER

public static final String BEGIN_MARKER
See Also:
Constant Field Values
Constructor Detail

LogFileFormatter

public LogFileFormatter()
Default constructor. Initializes the dateformat to be used for date and time logging. The default date format is DateFormat.MEDIUM and for time it is DateFormat.FULL based on the default Locale.

Method Detail

format

public String format(LogRecord rec)
Formats a log record for publishing to the server or domain log files.

Overrides:
format in class ConsoleFormatter
Parameters:
rec - The log record to be formatted.
Returns:
The formatted string representation of the log record.

toString

public String toString(weblogic.logging.LogEntry logEntry)
Formats a log entry object to a string representation.

Specified by:
toString in interface weblogic.logging.LogEntryFormatter
Overrides:
toString in class ConsoleFormatter
Parameters:
logEntry -
Returns:

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