public class ADFLogRecord
extends java.util.logging.LogRecord
Constructor and Description |
---|
ADFLogRecord(java.lang.Class logger,
java.util.logging.Level level,
java.lang.String msg)
Constructor.
|
ADFLogRecord(java.util.logging.Level level,
java.lang.String msg)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSourceClassName()
Get source class name
|
java.lang.String |
getSourceMethodName()
Get source method name
|
java.lang.Throwable |
getThrown() |
void |
setParameters(java.lang.Object[] parameters) |
void |
setSourceClassName(java.lang.String sourceClassName)
Set source class name
|
void |
setSourceMethodName(java.lang.String sourceMethodName)
Set source method name
|
void |
setThrown(java.lang.Throwable thrown) |
getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getThreadID, setLevel, setLoggerName, setMessage, setMillis, setResourceBundle, setResourceBundleName, setSequenceNumber, setThreadID
public ADFLogRecord(java.util.logging.Level level, java.lang.String msg)
level
- the log record levelmsg
- the message to be loggedpublic ADFLogRecord(java.lang.Class logger, java.util.logging.Level level, java.lang.String msg)
This constructor uses the provided logger to determine what class to look for when walking the stack to determine the SRC_CLASS and SRC_METHOD attributes.
This allows ADFLogger to be subclassed and retain the ability to determine the real source class and method.
logger
- the logger creating the log record.level
- the log record levelmsg
- the message to be loggedpublic java.lang.String getSourceClassName()
getSourceClassName
in class java.util.logging.LogRecord
public void setSourceClassName(java.lang.String sourceClassName)
setSourceClassName
in class java.util.logging.LogRecord
sourceClassName
- source class namepublic java.lang.String getSourceMethodName()
getSourceMethodName
in class java.util.logging.LogRecord
public void setSourceMethodName(java.lang.String sourceMethodName)
setSourceMethodName
in class java.util.logging.LogRecord
sourceMethodName
- source method namepublic void setThrown(java.lang.Throwable thrown)
setThrown
in class java.util.logging.LogRecord
public java.lang.Throwable getThrown()
getThrown
in class java.util.logging.LogRecord
public void setParameters(java.lang.Object[] parameters)
setParameters
in class java.util.logging.LogRecord