Package org.jboss.logmanager
Class WrappedExtLogRecord
java.lang.Object
java.util.logging.LogRecord
org.jboss.logmanager.ExtLogRecord
org.jboss.logmanager.WrappedExtLogRecord
- All Implemented Interfaces:
Serializable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.logmanager.ExtLogRecord
ExtLogRecord.FormatStyle
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLevel()
long
Object[]
long
Get the source file name for this log record.int
Get the source line number for this log record.int
private void
resolve()
void
void
setLoggerName
(String name) void
setMessage
(String message) Set the raw message.void
setMillis
(long millis) void
setParameters
(Object[] parameters) Set the parameters to the log message.void
setResourceBundle
(ResourceBundle bundle) Set the localization resource bundle.void
setResourceBundleName
(String name) Set the localization resource bundle name.void
setSequenceNumber
(long seq) void
setSourceClassName
(String sourceClassName) void
setSourceFileName
(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
(String sourceMethodName) void
setThreadID
(int threadID) void
protected Object
Methods inherited from class org.jboss.logmanager.ExtLogRecord
copyAll, copyMdc, disableCallerCalculation, getFormatStyle, getFormattedMessage, getLoggerClassName, getMdc, getMdcCopy, getNdc, getResourceKey, getThreadName, putMdc, removeMdc, setMdc, setMessage, setNdc, setThreadName, wrap
Methods inherited from class java.util.logging.LogRecord
getInstant, getLongThreadID, setInstant, setLongThreadID
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
LOGGER_CLASS_NAME
-
orig
-
resolved
private transient boolean resolved
-
-
Constructor Details
-
WrappedExtLogRecord
WrappedExtLogRecord(LogRecord orig)
-
-
Method Details
-
getLoggerName
- Overrides:
getLoggerName
in classLogRecord
-
setLoggerName
- Overrides:
setLoggerName
in classLogRecord
-
getResourceBundle
- Overrides:
getResourceBundle
in classLogRecord
-
setResourceBundle
Description copied from class:ExtLogRecord
Set the localization resource bundle. Any cached formatted message is discarded.- Overrides:
setResourceBundle
in classExtLogRecord
- Parameters:
bundle
- localization bundle (may be null)
-
getResourceBundleName
- Overrides:
getResourceBundleName
in classLogRecord
-
setResourceBundleName
Description copied from class:ExtLogRecord
Set the localization resource bundle name. Any cached formatted message is discarded.- Overrides:
setResourceBundleName
in classExtLogRecord
- Parameters:
name
- localization bundle name (may be null)
-
getLevel
-
setLevel
-
getSequenceNumber
public long getSequenceNumber()- Overrides:
getSequenceNumber
in classLogRecord
-
setSequenceNumber
public void setSequenceNumber(long seq) - Overrides:
setSequenceNumber
in classLogRecord
-
getSourceClassName
Description copied from class:ExtLogRecord
- Overrides:
getSourceClassName
in classExtLogRecord
-
setSourceClassName
Description copied from class:ExtLogRecord
- Overrides:
setSourceClassName
in classExtLogRecord
-
getSourceMethodName
Description copied from class:ExtLogRecord
- Overrides:
getSourceMethodName
in classExtLogRecord
-
setSourceMethodName
Description copied from class:ExtLogRecord
- Overrides:
setSourceMethodName
in classExtLogRecord
-
resolve
private void resolve() -
getSourceLineNumber
public int getSourceLineNumber()Description copied from class:ExtLogRecord
Get the source line number for this log record. Note that this line number 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 -1 if no information could be obtained.- Overrides:
getSourceLineNumber
in classExtLogRecord
- Returns:
- the source line number
-
setSourceLineNumber
public void setSourceLineNumber(int sourceLineNumber) Description copied from class:ExtLogRecord
Set the source line number for this log record.- Overrides:
setSourceLineNumber
in classExtLogRecord
- Parameters:
sourceLineNumber
- the source line number
-
getSourceFileName
Description copied from class:ExtLogRecord
Get the source file name for this log record. Note that this file name 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 benull
if no information could be obtained.- Overrides:
getSourceFileName
in classExtLogRecord
- Returns:
- the source file name
-
setSourceFileName
Description copied from class:ExtLogRecord
Set the source file name for this log record.- Overrides:
setSourceFileName
in classExtLogRecord
- Parameters:
sourceFileName
- the source file name
-
getMessage
- Overrides:
getMessage
in classLogRecord
-
setMessage
Description copied from class:ExtLogRecord
Set the raw message. Any cached formatted message is discarded. The parameter format is set to beMessageFormat
-style.- Overrides:
setMessage
in classExtLogRecord
- Parameters:
message
- the new raw message
-
getParameters
- Overrides:
getParameters
in classLogRecord
-
setParameters
Description copied from class:ExtLogRecord
Set the parameters to the log message. Any cached formatted message is discarded.- Overrides:
setParameters
in classExtLogRecord
- Parameters:
parameters
- the log message parameters. (may be null)
-
getThreadID
public int getThreadID()- Overrides:
getThreadID
in classLogRecord
-
setThreadID
public void setThreadID(int threadID) - Overrides:
setThreadID
in classLogRecord
-
getMillis
public long getMillis() -
setMillis
public void setMillis(long millis) -
getThrown
-
setThrown
-
writeReplace
-