class WrappedExtLogRecord extends ExtLogRecord
ExtLogRecord.FormatStyle
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
LOGGER_CLASS_NAME |
private java.util.logging.LogRecord |
orig |
private boolean |
resolved |
private static long |
serialVersionUID |
Constructor and Description |
---|
WrappedExtLogRecord(java.util.logging.LogRecord orig) |
Modifier and Type | Method and Description |
---|---|
java.util.logging.Level |
getLevel() |
java.lang.String |
getLoggerName() |
java.lang.String |
getMessage() |
long |
getMillis() |
java.lang.Object[] |
getParameters() |
java.util.ResourceBundle |
getResourceBundle() |
java.lang.String |
getResourceBundleName() |
long |
getSequenceNumber() |
java.lang.String |
getSourceClassName() |
java.lang.String |
getSourceFileName()
Get the source file name for this log record.
|
int |
getSourceLineNumber()
Get the source line number for this log record.
|
java.lang.String |
getSourceMethodName() |
int |
getThreadID() |
java.lang.Throwable |
getThrown() |
private void |
resolve() |
void |
setLevel(java.util.logging.Level level) |
void |
setLoggerName(java.lang.String name) |
void |
setMessage(java.lang.String message)
Set the raw message.
|
void |
setMillis(long millis) |
void |
setParameters(java.lang.Object[] parameters)
Set the parameters to the log message.
|
void |
setResourceBundle(java.util.ResourceBundle bundle)
Set the localization resource bundle.
|
void |
setResourceBundleName(java.lang.String name)
Set the localization resource bundle name.
|
void |
setSequenceNumber(long seq) |
void |
setSourceClassName(java.lang.String sourceClassName) |
void |
setSourceFileName(java.lang.String sourceFileName)
Set the source file name for this log record.
|
void |
setSourceLineNumber(int sourceLineNumber)
Set the source line number for this log record.
|
void |
setSourceMethodName(java.lang.String sourceMethodName) |
void |
setThreadID(int threadID) |
void |
setThrown(java.lang.Throwable thrown) |
protected java.lang.Object |
writeReplace() |
copyAll, copyMdc, disableCallerCalculation, getFormatStyle, getFormattedMessage, getLoggerClassName, getMdc, getMdcCopy, getNdc, getResourceKey, getThreadName, putMdc, removeMdc, setMdc, setMessage, setNdc, setThreadName, wrap
private static final long serialVersionUID
private static final java.lang.String LOGGER_CLASS_NAME
private final transient java.util.logging.LogRecord orig
private transient boolean resolved
public java.lang.String getLoggerName()
getLoggerName
in class java.util.logging.LogRecord
public void setLoggerName(java.lang.String name)
setLoggerName
in class java.util.logging.LogRecord
public java.util.ResourceBundle getResourceBundle()
getResourceBundle
in class java.util.logging.LogRecord
public void setResourceBundle(java.util.ResourceBundle bundle)
ExtLogRecord
setResourceBundle
in class ExtLogRecord
bundle
- localization bundle (may be null)public java.lang.String getResourceBundleName()
getResourceBundleName
in class java.util.logging.LogRecord
public void setResourceBundleName(java.lang.String name)
ExtLogRecord
setResourceBundleName
in class ExtLogRecord
name
- localization bundle name (may be null)public java.util.logging.Level getLevel()
getLevel
in class java.util.logging.LogRecord
public void setLevel(java.util.logging.Level level)
setLevel
in class java.util.logging.LogRecord
public long getSequenceNumber()
getSequenceNumber
in class java.util.logging.LogRecord
public void setSequenceNumber(long seq)
setSequenceNumber
in class java.util.logging.LogRecord
public java.lang.String getSourceClassName()
ExtLogRecord
getSourceClassName
in class ExtLogRecord
public void setSourceClassName(java.lang.String sourceClassName)
ExtLogRecord
setSourceClassName
in class ExtLogRecord
public java.lang.String getSourceMethodName()
ExtLogRecord
getSourceMethodName
in class ExtLogRecord
public void setSourceMethodName(java.lang.String sourceMethodName)
ExtLogRecord
setSourceMethodName
in class ExtLogRecord
private void resolve()
public int getSourceLineNumber()
ExtLogRecord
getSourceLineNumber
in class ExtLogRecord
public void setSourceLineNumber(int sourceLineNumber)
ExtLogRecord
setSourceLineNumber
in class ExtLogRecord
sourceLineNumber
- the source line numberpublic java.lang.String getSourceFileName()
ExtLogRecord
null
if no information could be obtained.getSourceFileName
in class ExtLogRecord
public void setSourceFileName(java.lang.String sourceFileName)
ExtLogRecord
setSourceFileName
in class ExtLogRecord
sourceFileName
- the source file namepublic java.lang.String getMessage()
getMessage
in class java.util.logging.LogRecord
public void setMessage(java.lang.String message)
ExtLogRecord
MessageFormat
-style.setMessage
in class ExtLogRecord
message
- the new raw messagepublic java.lang.Object[] getParameters()
getParameters
in class java.util.logging.LogRecord
public void setParameters(java.lang.Object[] parameters)
ExtLogRecord
setParameters
in class ExtLogRecord
parameters
- the log message parameters. (may be null)public int getThreadID()
getThreadID
in class java.util.logging.LogRecord
public void setThreadID(int threadID)
setThreadID
in class java.util.logging.LogRecord
public long getMillis()
getMillis
in class java.util.logging.LogRecord
public void setMillis(long millis)
setMillis
in class java.util.logging.LogRecord
public java.lang.Throwable getThrown()
getThrown
in class java.util.logging.LogRecord
public void setThrown(java.lang.Throwable thrown)
setThrown
in class java.util.logging.LogRecord
protected java.lang.Object writeReplace()