Package org.jboss.logmanager
Class WrappedExtLogRecord
- java.lang.Object
-
- java.util.logging.LogRecord
-
- org.jboss.logmanager.ExtLogRecord
-
- org.jboss.logmanager.WrappedExtLogRecord
-
- All Implemented Interfaces:
java.io.Serializable
class WrappedExtLogRecord extends ExtLogRecord
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.logmanager.ExtLogRecord
ExtLogRecord.FormatStyle
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringLOGGER_CLASS_NAMEprivate java.util.logging.LogRecordorigprivate booleanresolvedprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description WrappedExtLogRecord(java.util.logging.LogRecord orig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.logging.LevelgetLevel()java.lang.StringgetLoggerName()java.lang.StringgetMessage()longgetMillis()java.lang.Object[]getParameters()java.util.ResourceBundlegetResourceBundle()java.lang.StringgetResourceBundleName()longgetSequenceNumber()java.lang.StringgetSourceClassName()java.lang.StringgetSourceFileName()Get the source file name for this log record.intgetSourceLineNumber()Get the source line number for this log record.java.lang.StringgetSourceMethodName()intgetThreadID()java.lang.ThrowablegetThrown()private voidresolve()voidsetLevel(java.util.logging.Level level)voidsetLoggerName(java.lang.String name)voidsetMessage(java.lang.String message)Set the raw message.voidsetMillis(long millis)voidsetParameters(java.lang.Object[] parameters)Set the parameters to the log message.voidsetResourceBundle(java.util.ResourceBundle bundle)Set the localization resource bundle.voidsetResourceBundleName(java.lang.String name)Set the localization resource bundle name.voidsetSequenceNumber(long seq)voidsetSourceClassName(java.lang.String sourceClassName)voidsetSourceFileName(java.lang.String sourceFileName)Set the source file name for this log record.voidsetSourceLineNumber(int sourceLineNumber)Set the source line number for this log record.voidsetSourceMethodName(java.lang.String sourceMethodName)voidsetThreadID(int threadID)voidsetThrown(java.lang.Throwable thrown)protected java.lang.ObjectwriteReplace()-
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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
LOGGER_CLASS_NAME
private static final java.lang.String LOGGER_CLASS_NAME
-
orig
private final transient java.util.logging.LogRecord orig
-
resolved
private transient boolean resolved
-
-
Method Detail
-
getLoggerName
public java.lang.String getLoggerName()
- Overrides:
getLoggerNamein classjava.util.logging.LogRecord
-
setLoggerName
public void setLoggerName(java.lang.String name)
- Overrides:
setLoggerNamein classjava.util.logging.LogRecord
-
getResourceBundle
public java.util.ResourceBundle getResourceBundle()
- Overrides:
getResourceBundlein classjava.util.logging.LogRecord
-
setResourceBundle
public void setResourceBundle(java.util.ResourceBundle bundle)
Description copied from class:ExtLogRecordSet the localization resource bundle. Any cached formatted message is discarded.- Overrides:
setResourceBundlein classExtLogRecord- Parameters:
bundle- localization bundle (may be null)
-
getResourceBundleName
public java.lang.String getResourceBundleName()
- Overrides:
getResourceBundleNamein classjava.util.logging.LogRecord
-
setResourceBundleName
public void setResourceBundleName(java.lang.String name)
Description copied from class:ExtLogRecordSet the localization resource bundle name. Any cached formatted message is discarded.- Overrides:
setResourceBundleNamein classExtLogRecord- Parameters:
name- localization bundle name (may be null)
-
getLevel
public java.util.logging.Level getLevel()
- Overrides:
getLevelin classjava.util.logging.LogRecord
-
setLevel
public void setLevel(java.util.logging.Level level)
- Overrides:
setLevelin classjava.util.logging.LogRecord
-
getSequenceNumber
public long getSequenceNumber()
- Overrides:
getSequenceNumberin classjava.util.logging.LogRecord
-
setSequenceNumber
public void setSequenceNumber(long seq)
- Overrides:
setSequenceNumberin classjava.util.logging.LogRecord
-
getSourceClassName
public java.lang.String getSourceClassName()
Description copied from class:ExtLogRecord- Overrides:
getSourceClassNamein classExtLogRecord
-
setSourceClassName
public void setSourceClassName(java.lang.String sourceClassName)
Description copied from class:ExtLogRecord- Overrides:
setSourceClassNamein classExtLogRecord
-
getSourceMethodName
public java.lang.String getSourceMethodName()
Description copied from class:ExtLogRecord- Overrides:
getSourceMethodNamein classExtLogRecord
-
setSourceMethodName
public void setSourceMethodName(java.lang.String sourceMethodName)
Description copied from class:ExtLogRecord- Overrides:
setSourceMethodNamein classExtLogRecord
-
resolve
private void resolve()
-
getSourceLineNumber
public int getSourceLineNumber()
Description copied from class:ExtLogRecordGet 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:
getSourceLineNumberin classExtLogRecord- Returns:
- the source line number
-
setSourceLineNumber
public void setSourceLineNumber(int sourceLineNumber)
Description copied from class:ExtLogRecordSet the source line number for this log record.- Overrides:
setSourceLineNumberin classExtLogRecord- Parameters:
sourceLineNumber- the source line number
-
getSourceFileName
public java.lang.String getSourceFileName()
Description copied from class:ExtLogRecordGet 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 benullif no information could be obtained.- Overrides:
getSourceFileNamein classExtLogRecord- Returns:
- the source file name
-
setSourceFileName
public void setSourceFileName(java.lang.String sourceFileName)
Description copied from class:ExtLogRecordSet the source file name for this log record.- Overrides:
setSourceFileNamein classExtLogRecord- Parameters:
sourceFileName- the source file name
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.util.logging.LogRecord
-
setMessage
public void setMessage(java.lang.String message)
Description copied from class:ExtLogRecordSet the raw message. Any cached formatted message is discarded. The parameter format is set to beMessageFormat-style.- Overrides:
setMessagein classExtLogRecord- Parameters:
message- the new raw message
-
getParameters
public java.lang.Object[] getParameters()
- Overrides:
getParametersin classjava.util.logging.LogRecord
-
setParameters
public void setParameters(java.lang.Object[] parameters)
Description copied from class:ExtLogRecordSet the parameters to the log message. Any cached formatted message is discarded.- Overrides:
setParametersin classExtLogRecord- Parameters:
parameters- the log message parameters. (may be null)
-
getThreadID
public int getThreadID()
- Overrides:
getThreadIDin classjava.util.logging.LogRecord
-
setThreadID
public void setThreadID(int threadID)
- Overrides:
setThreadIDin classjava.util.logging.LogRecord
-
getMillis
public long getMillis()
- Overrides:
getMillisin classjava.util.logging.LogRecord
-
setMillis
public void setMillis(long millis)
- Overrides:
setMillisin classjava.util.logging.LogRecord
-
getThrown
public java.lang.Throwable getThrown()
- Overrides:
getThrownin classjava.util.logging.LogRecord
-
setThrown
public void setThrown(java.lang.Throwable thrown)
- Overrides:
setThrownin classjava.util.logging.LogRecord
-
writeReplace
protected java.lang.Object writeReplace()
-
-