BEA WebLogic Server 9.1 API Reference
weblogic.logging
Class LogFileFormatter
java.lang.Object
java.util.logging.Formatter
weblogic.logging.ConsoleFormatter
weblogic.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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BEGIN_MARKER
public static final String BEGIN_MARKER
- See Also:
- Constant Field Values
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.
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: