public class CustomLogRecord
extends java.util.logging.LogRecord
Constructor and Description |
---|
CustomLogRecord(java.util.logging.Level level,
java.lang.String msg) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSourceClassName()
Get the name of the class that (allegedly) issued the logging request.
|
java.lang.String |
getSourceMethodName()
Get the name of the method that (allegedly) issued the logging request.
|
getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getThreadID, getThrown, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setSourceClassName, setSourceMethodName, setThreadID, setThrown
public CustomLogRecord(java.util.logging.Level level, java.lang.String msg)
public java.lang.String getSourceClassName()
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.
getSourceClassName
in class java.util.logging.LogRecord
public java.lang.String getSourceMethodName()
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.
getSourceMethodName
in class java.util.logging.LogRecord