Oracle Fusion Middleware
Oracle WebLogic Server API Reference
12c Release 1 (12.1.1)

Part Number E24391-02

weblogic.logging
Class LogFileFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by weblogic.logging.ConsoleFormatter
          extended by weblogic.logging.LogFileFormatter

public final class LogFileFormatter
extends ConsoleFormatter

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.


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


LogFileFormatter

public LogFileFormatter(LogFileMBean logFileMBean)
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(LogEntry logEntry)
Formats a log entry object to a string representation.

Overrides:
toString in class ConsoleFormatter
Parameters:
logEntry -

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
12c Release 1 (12.1.1)

Part Number E24391-02