java.lang.Objectjava.util.logging.LogRecord
All Implemented Interfaces:
Serializable
When a LogRecord is passed into the logging framework it logically belongs to the framework and should no longer be used or updated by the client application.
Note that if the client application has not specified an explicit source method name and source class name, then the LogRecord class will infer them automatically when they are first accessed (due to a call on getSourceMethodName or getSourceClassName) by analyzing the call stack. Therefore, if a logging Handler wants to pass off a LogRecord to another thread, or to transmit it over RMI, and if it wishes to subsequently obtain method name or class name information it should call one of getSourceClassName or getSourceMethodName to force the values to be filled in.
Serialization notes:
1.4 - | Constructor: |
|---|
The sequence property will be initialized with a new unique value. These sequence values are allocated in increasing order within a VM. The millis property will be initialized to the current time. The thread ID property will be initialized with a unique ID for the current thread. All other properties will be initialized to "null".
|
| Method from java.util.logging.LogRecord Summary: |
|---|
| 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 from java.lang.Object: |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from java.util.logging.LogRecord Detail: |
|---|
|
|
May be null, which is equivalent to the empty string "". This message may be either the final text or a localization key. During formatting, if the source logger has a localization ResourceBundle and if that ResourceBundle has an entry for this message string, then the message string is replaced with the localized value. |
|
|
This is the ResourceBundle that should be used to localize the message string before formatting it. The result may be null if the message is not localizable, or if no suitable ResourceBundle is available. |
This is the name for the ResourceBundle that should be used to localize the message string before formatting it. The result may be null if the message is not localizable. |
Sequence numbers are normally assigned in the LogRecord constructor, which assigns unique sequence numbers to each new LogRecord in increasing order. |
Note that this sourceClassName is not verified and may be spoofed. This information may either have been provided as part of the logging call, or it may have been inferred automatically by the logging framework. In the latter case, the information may only be approximate and may in fact describe an earlier call on the stack frame. May be null if no information could be obtained. |
Note that this sourceMethodName is not verified and may be spoofed. This information may either have been provided as part of the logging call, or it may have been inferred automatically by the logging framework. In the latter case, the information may only be approximate and may in fact describe an earlier call on the stack frame. May be null if no information could be obtained. |
This is a thread identifier within the Java VM and may or may not map to any operating system ID. |
If the event involved an exception, this will be the exception object. Otherwise null. |
|
|
|
|
|
|
|
Sequence numbers are normally assigned in the LogRecord constructor, so it should not normally be necessary to use this method. |
|
|
|
|