Overview | Package | Class | Use | Tree | Deprecated | Index | Help
|  | Oracle
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.logging
Class BaseLogRecord

    java.lang.Object
      java.util.logging.LogRecord
          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.

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.
`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, getThrown, 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` -

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:

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Documentation is available at http://edocs.bea.com/wls/docs103 Copyright 1996,2008, 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.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD