Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.4)

Part Number E13941-04

com.bea.logging
Class BaseLogRecord

java.lang.Object
  extended by java.util.logging.LogRecord
      extended by com.bea.logging.BaseLogRecord
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
WLLogRecord

public class BaseLogRecord
extends LogRecord

Log record structure for Server Logging.

See Also:
Serialized Form

Constructor Summary
BaseLogRecord(int severity, String msg)
          Initialize a BaseLogRecord given the severity int value and the log message.
BaseLogRecord(int severity, String msg, Throwable throwable)
          Initialize a BaseLogRecord given the severity int value, the log message and the associated Exception.
BaseLogRecord(LogRecord rec)
          Create a log record clone.
 
Method Summary
 String getDiagnosticContextId()
          Gets the diagnostic context id associated with this log event.
 String getFormattedDate()
          Gets the formatted date string for the timestamp of this log record.
 String getId()
          Gets the message id of this log record.
 String getLogMessage()
          Gets the String message for this log record.
 String getMachineName()
          Gets the name of the machine where this log record was created.
 String getServerName()
          Gets the name of the server where this log record was created.
 int getSeverity()
          Gets the severity level for this log record.
 String getSubsystem()
          Gets the subsystem name from where this message originated.
 String getThreadName()
          Gets the name of the Thread from where this log record was created.
 Throwable getThrown()
           
 long getTimestamp()
          Gets the timestamp for this log record.
 String getTransactionId()
          Gets the JTA Transaction ID if present when the log record was created.
 String getUserId()
          Gets the user id who created this log record.
 
Methods inherited from class java.util.logging.LogRecord
getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getSourceClassName, getSourceMethodName, getThreadID, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setSourceClassName, setSourceMethodName, setThreadID, setThrown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseLogRecord

public BaseLogRecord(int severity,
                     String msg)
Initialize a BaseLogRecord given the severity int value and the log message.

Parameters:
severity -
msg -

BaseLogRecord

public BaseLogRecord(int severity,
                     String msg,
                     Throwable throwable)
Initialize a BaseLogRecord given the severity int value, the log message and the associated Exception.

Parameters:
severity -
msg -
throwable -

BaseLogRecord

public BaseLogRecord(LogRecord rec)
Create a log record clone.

Parameters:
rec -
Method Detail

getTimestamp

public long getTimestamp()
Gets the timestamp for this log record.


getLogMessage

public String getLogMessage()
Gets the String message for this log record.


getFormattedDate

public String getFormattedDate()
Gets the formatted date string for the timestamp of this log record.

Returns:

getThrown

public Throwable getThrown()
Overrides:
getThrown in class LogRecord

getSeverity

public int getSeverity()
Gets the severity level for this log record.


getId

public String getId()
Gets the message id of this log record.


getSubsystem

public String getSubsystem()
Gets the subsystem name from where this message originated.


getThreadName

public String getThreadName()
Gets the name of the Thread from where this log record was created.


getUserId

public String getUserId()
Gets the user id who created this log record.


getTransactionId

public String getTransactionId()
Gets the JTA Transaction ID if present when the log record was created.


getServerName

public String getServerName()
Gets the name of the server where this log record was created.


getDiagnosticContextId

public String getDiagnosticContextId()
Gets the diagnostic context id associated with this log event.


getMachineName

public String getMachineName()
Gets the name of the machine where this log record was created.


Copyright 1996, 2010, 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.4)

Part Number E13941-04