Top Fields Constructors Methods
org.jboss.logmanager

pack-priv Class WrappedExtLogRecord

extends ExtLogRecord
Class Inheritance
Imports
java.lang.invoke.MethodHandle, .MethodHandles, .MethodType, java.lang.reflect.UndeclaredThrowableException, java.time.Instant, java.util.ResourceBundle, java.util.logging.Level, .LogRecord

Field Summary

Modifier and TypeField and Description
private static final MethodHandle
private static final String
private final transient LogRecord
private transient boolean
private static final long
private static final MethodHandle

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Instant
getInstant()

Overrides java.util.logging.LogRecord.getInstant.

Gets the instant that the event occurred.

public Level
getLevel()

Overrides java.util.logging.LogRecord.getLevel.

Get the logging message level, for example Level.SEVERE.

public String
getLoggerName()

Overrides java.util.logging.LogRecord.getLoggerName.

Get the source Logger's name.

public long
getLongThreadID()

Overrides org.jboss.logmanager.ExtLogRecord.getLongThreadID.

Get a thread identifier for the thread where message originated

This is a thread identifier within the Java VM and may or may not map to any operating system ID.

public String
getMessage()

Overrides java.util.logging.LogRecord.getMessage.

Get the "raw" log message, before localization or formatting.

public long
getMillis()

Overrides java.util.logging.LogRecord.getMillis.

Get truncated event time in milliseconds since 1970.

public Object[]
getParameters()

Overrides java.util.logging.LogRecord.getParameters.

Get the parameters to the log message.

public ResourceBundle
getResourceBundle()

Overrides java.util.logging.LogRecord.getResourceBundle.

Get the localization resource bundle

This is the ResourceBundle that should be used to localize the message string before formatting it.

public String
getResourceBundleName()

Overrides java.util.logging.LogRecord.getResourceBundleName.

Get the localization resource bundle name

This is the name for the ResourceBundle that should be used to localize the message string before formatting it.

public long
public String
getSourceClassName()

Overrides org.jboss.logmanager.ExtLogRecord.getSourceClassName.

Get the name of the class that (allegedly) issued the logging request.

public String
getSourceFileName()

Overrides org.jboss.logmanager.ExtLogRecord.getSourceFileName.

Get the source file name for this log record.

public int
getSourceLineNumber()

Overrides org.jboss.logmanager.ExtLogRecord.getSourceLineNumber.

Get the source line number for this log record.

public String
getSourceMethodName()

Overrides org.jboss.logmanager.ExtLogRecord.getSourceMethodName.

Get the name of the method that (allegedly) issued the logging request.

public int
getThreadID()

Overrides java.util.logging.LogRecord.getThreadID.

Get an identifier for the thread where the message originated.

public Throwable
getThrown()

Overrides java.util.logging.LogRecord.getThrown.

Get any throwable associated with the log record.

private void
public void
setInstant(Instant
the instant that the event occurred.
instant
)

Overrides java.util.logging.LogRecord.setInstant.

Sets the instant that the event occurred.

public void
setLevel(final Level
the logging message level
level
)

Overrides java.util.logging.LogRecord.setLevel.

Set the logging message level, for example Level.SEVERE.

public void
setLoggerName(final String
the source logger name (may be null)
name
)

Overrides java.util.logging.LogRecord.setLoggerName.

Set the source Logger's name.

public ExtLogRecord
setLongThreadID(final long
the thread ID
id
)

Overrides org.jboss.logmanager.ExtLogRecord.setLongThreadID.

Set an identifier for the thread where the message originated.

public void
setMessage(final String
the new raw message
message
)

Overrides org.jboss.logmanager.ExtLogRecord.setMessage.

Set the raw message.

public void
setMessage(String
the new raw message
message
,
ExtLogRecord.FormatStyle
the format style to use
formatStyle
)

Overrides org.jboss.logmanager.ExtLogRecord.setMessage.

Set the raw message.

public void
setMillis(final long
event time in millis since 1970.
millis
)

Overrides java.util.logging.LogRecord.setMillis.

Deprecated

Set event time.

public void
setParameters(final Object[]
the log message parameters. (may be null)
parameters
)

Overrides org.jboss.logmanager.ExtLogRecord.setParameters.

Set the parameters to the log message.

public void
setResourceBundle(final ResourceBundle
localization bundle (may be null)
bundle
)

Overrides org.jboss.logmanager.ExtLogRecord.setResourceBundle.

Set the localization resource bundle.

public void
setResourceBundleName(final String
localization bundle name (may be null)
name
)

Overrides org.jboss.logmanager.ExtLogRecord.setResourceBundleName.

Set the localization resource bundle name.

public void
setSequenceNumber(final long
the sequence number
seq
)

Overrides java.util.logging.LogRecord.setSequenceNumber.

Set the sequence number.

public void
setSourceClassName(final String
the source class name (may be null)
sourceClassName
)

Overrides org.jboss.logmanager.ExtLogRecord.setSourceClassName.

Set the name of the class that (allegedly) issued the logging request.

public void
setSourceFileName(final String
the source file name
sourceFileName
)

Overrides org.jboss.logmanager.ExtLogRecord.setSourceFileName.

Set the source file name for this log record.

public void
setSourceLineNumber(final int
the source line number
sourceLineNumber
)

Overrides org.jboss.logmanager.ExtLogRecord.setSourceLineNumber.

Set the source line number for this log record.

public void
setSourceMethodName(final String
the source method name (may be null)
sourceMethodName
)

Overrides org.jboss.logmanager.ExtLogRecord.setSourceMethodName.

Set the name of the method that (allegedly) issued the logging request.

public void
setThreadID(final int
the thread ID
threadID
)

Overrides org.jboss.logmanager.ExtLogRecord.setThreadID.

Set an identifier for the thread where the message originated.

public void
setThrown(final Throwable
a throwable (may be null)
thrown
)

Overrides java.util.logging.LogRecord.setThrown.

Set a throwable associated with the log event.

protected Object
Inherited from org.jboss.logmanager.ExtLogRecord:
copyAllcopyMdcdisableCallerCalculationgetFormatStylegetFormattedMessagegetHostNamegetLoggerClassNamegetMarkergetMdcgetMdcCopygetNdcgetProcessIdgetProcessNamegetResourceKeygetSourceModuleNamegetSourceModuleVersiongetThreadNameputMdcremoveMdcsetHostNamesetMarkersetMdcsetNdcsetProcessIdsetProcessNamesetSourceModuleNamesetSourceModuleVersionsetThreadNamesetUnknownCallersuperGetLongThreadIDsuperSetLongThreadIDwrap

Field Detail

getLongThreadIDback to summary
private static final MethodHandle getLongThreadID
LOGGER_CLASS_NAMEback to summary
private static final String LOGGER_CLASS_NAME
origback to summary
private final transient LogRecord orig
resolvedback to summary
private transient boolean resolved
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.jboss.logmanager.ExtLogRecord.serialVersionUID.

setLongThreadIDback to summary
private static final MethodHandle setLongThreadID

Constructor Detail

WrappedExtLogRecordback to summary
pack-priv WrappedExtLogRecord(final LogRecord orig)

Method Detail

getInstantback to summary
public Instant getInstant()

Overrides java.util.logging.LogRecord.getInstant.

Doc from java.util.logging.LogRecord.getInstant.

Gets the instant that the event occurred.

Returns:Instant

the instant that the event occurred.

getLevelback to summary
public Level getLevel()

Overrides java.util.logging.LogRecord.getLevel.

Doc from java.util.logging.LogRecord.getLevel.

Get the logging message level, for example Level.SEVERE.

Returns:Level

the logging message level

getLoggerNameback to summary
public String getLoggerName()

Overrides java.util.logging.LogRecord.getLoggerName.

Doc from java.util.logging.LogRecord.getLoggerName.

Get the source Logger's name.

Returns:String

source logger name (may be null)

getLongThreadIDback to summary
public long getLongThreadID()

Overrides org.jboss.logmanager.ExtLogRecord.getLongThreadID.

Doc from java.util.logging.LogRecord.getLongThreadID.

Get a thread identifier for the thread where message originated

This is a thread identifier within the Java VM and may or may not map to any operating system ID.

Returns:long

thread ID

getMessageback to summary
public String getMessage()

Overrides java.util.logging.LogRecord.getMessage.

Doc from java.util.logging.LogRecord.getMessage.

Get the "raw" log message, before localization or formatting.

May be null, which is equivalent to the empty string "".

This message may be either the final text or a localization key.

During formatting, if the source logger has a localization ResourceBundle and if that ResourceBundle has an entry for this message string, then the message string is replaced with the localized value.

Returns:String

the raw message string

getMillisback to summary
public long getMillis()

Overrides java.util.logging.LogRecord.getMillis.

Doc from java.util.logging.LogRecord.getMillis.

Get truncated event time in milliseconds since 1970.

Returns:long

truncated event time in millis since 1970

getParametersback to summary
public Object[] getParameters()

Overrides java.util.logging.LogRecord.getParameters.

Doc from java.util.logging.LogRecord.getParameters.

Get the parameters to the log message.

Returns:Object[]

the log message parameters. May be null if there are no parameters.

getResourceBundleback to summary
public ResourceBundle getResourceBundle()

Overrides java.util.logging.LogRecord.getResourceBundle.

Doc from java.util.logging.LogRecord.getResourceBundle.

Get the localization resource bundle

This is the ResourceBundle that should be used to localize the message string before formatting it. The result may be null if the message is not localizable, or if no suitable ResourceBundle is available.

Returns:ResourceBundle

the localization resource bundle

getResourceBundleNameback to summary
public String getResourceBundleName()

Overrides java.util.logging.LogRecord.getResourceBundleName.

Doc from java.util.logging.LogRecord.getResourceBundleName.

Get the localization resource bundle name

This is the name for the ResourceBundle that should be used to localize the message string before formatting it. The result may be null if the message is not localizable.

Returns:String

the localization resource bundle name

getSequenceNumberback to summary
public long getSequenceNumber()

Overrides java.util.logging.LogRecord.getSequenceNumber.

Doc from java.util.logging.LogRecord.getSequenceNumber.

Get the sequence number.

Sequence numbers are normally assigned in the LogRecord constructor, which assigns unique sequence numbers to each new LogRecord in increasing order.

Returns:long

the sequence number

getSourceClassNameback to summary
public String getSourceClassName()

Overrides org.jboss.logmanager.ExtLogRecord.getSourceClassName.

Doc from org.jboss.logmanager.ExtLogRecord.getSourceClassName.

Get the name of the class that (allegedly) issued the logging request.

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.

Returns:String

Doc from java.util.logging.LogRecord.getSourceClassName.

the source class name

getSourceFileNameback to summary
public String getSourceFileName()

Overrides org.jboss.logmanager.ExtLogRecord.getSourceFileName.

Doc from org.jboss.logmanager.ExtLogRecord.getSourceFileName.

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 be null if no information could be obtained.

Returns:String

the source file name

getSourceLineNumberback to summary
public int getSourceLineNumber()

Overrides org.jboss.logmanager.ExtLogRecord.getSourceLineNumber.

Doc from org.jboss.logmanager.ExtLogRecord.getSourceLineNumber.

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.

Returns:int

the source line number

getSourceMethodNameback to summary
public String getSourceMethodName()

Overrides org.jboss.logmanager.ExtLogRecord.getSourceMethodName.

Doc from org.jboss.logmanager.ExtLogRecord.getSourceMethodName.

Get the name of the method that (allegedly) issued the logging request.

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.

Returns:String

Doc from java.util.logging.LogRecord.getSourceMethodName.

the source method name

getThreadIDback to summary
public int getThreadID()

Overrides java.util.logging.LogRecord.getThreadID.

Doc from java.util.logging.LogRecord.getThreadID.

Get an identifier for the thread where the message originated.

This is a thread identifier within the Java VM and may or may not map to any operating system ID.

Returns:int

thread ID

getThrownback to summary
public Throwable getThrown()

Overrides java.util.logging.LogRecord.getThrown.

Doc from java.util.logging.LogRecord.getThrown.

Get any throwable associated with the log record.

If the event involved an exception, this will be the exception object. Otherwise null.

Returns:Throwable

a throwable

resolveback to summary
private void resolve()
setInstantback to summary
public void setInstant(Instant instant)

Overrides java.util.logging.LogRecord.setInstant.

Doc from java.util.logging.LogRecord.setInstant.

Sets the instant that the event occurred.

If the given instant represents a point on the time-line too far in the future or past to fit in a long milliseconds and nanoseconds adjustment, then an ArithmeticException will be thrown.

Parameters
instant:Instant

the instant that the event occurred.

setLevelback to summary
public void setLevel(final Level level)

Overrides java.util.logging.LogRecord.setLevel.

Doc from java.util.logging.LogRecord.setLevel.

Set the logging message level, for example Level.SEVERE.

Parameters
level:Level

the logging message level

setLoggerNameback to summary
public void setLoggerName(final String name)

Overrides java.util.logging.LogRecord.setLoggerName.

Doc from java.util.logging.LogRecord.setLoggerName.

Set the source Logger's name.

Parameters
name:String

the source logger name (may be null)

setLongThreadIDback to summary
public ExtLogRecord setLongThreadID(final long id)

Overrides org.jboss.logmanager.ExtLogRecord.setLongThreadID.

Doc from java.util.logging.LogRecord.setLongThreadID.

Set an identifier for the thread where the message originated.

Parameters
id:long

the thread ID

Returns:ExtLogRecord

this LogRecord

setMessageback to summary
public void setMessage(final String message)

Overrides org.jboss.logmanager.ExtLogRecord.setMessage.

Doc from org.jboss.logmanager.ExtLogRecord.setMessage.

Set the raw message. Any cached formatted message is discarded. The parameter format is set to be java.text.MessageFormat-style.

Parameters
message:String

the new raw message

setMessageback to summary
public void setMessage(String message, ExtLogRecord.FormatStyle formatStyle)

Overrides org.jboss.logmanager.ExtLogRecord.setMessage.

Doc from org.jboss.logmanager.ExtLogRecord.setMessage.

Set the raw message. Any cached formatted message is discarded. The parameter format is set according to the given argument.

Parameters
message:String

the new raw message

formatStyle:ExtLogRecord.FormatStyle

the format style to use

Annotations
@Override
setMillisback to summary
public void setMillis(final long millis)

Overrides java.util.logging.LogRecord.setMillis.

Doc from java.util.logging.LogRecord.setMillis.

Deprecated

Set event time.

Parameters
millis:long

event time in millis since 1970.

Annotations
@Deprecated
@SuppressWarnings:deprecation
setParametersback to summary
public void setParameters(final Object[] parameters)

Overrides org.jboss.logmanager.ExtLogRecord.setParameters.

Doc from org.jboss.logmanager.ExtLogRecord.setParameters.

Set the parameters to the log message. Any cached formatted message is discarded.

Parameters
parameters:Object[]

the log message parameters. (may be null)

setResourceBundleback to summary
public void setResourceBundle(final ResourceBundle bundle)

Overrides org.jboss.logmanager.ExtLogRecord.setResourceBundle.

Doc from org.jboss.logmanager.ExtLogRecord.setResourceBundle.

Set the localization resource bundle. Any cached formatted message is discarded.

Parameters
bundle:ResourceBundle

localization bundle (may be null)

setResourceBundleNameback to summary
public void setResourceBundleName(final String name)

Overrides org.jboss.logmanager.ExtLogRecord.setResourceBundleName.

Doc from org.jboss.logmanager.ExtLogRecord.setResourceBundleName.

Set the localization resource bundle name. Any cached formatted message is discarded.

Parameters
name:String

localization bundle name (may be null)

setSequenceNumberback to summary
public void setSequenceNumber(final long seq)

Overrides java.util.logging.LogRecord.setSequenceNumber.

Doc from java.util.logging.LogRecord.setSequenceNumber.

Set the sequence number.

Sequence numbers are normally assigned in the LogRecord constructor, so it should not normally be necessary to use this method.

Parameters
seq:long

the sequence number

setSourceClassNameback to summary
public void setSourceClassName(final String sourceClassName)

Overrides org.jboss.logmanager.ExtLogRecord.setSourceClassName.

Doc from org.jboss.logmanager.ExtLogRecord.setSourceClassName.

Set the name of the class that (allegedly) issued the logging request.

Parameters
sourceClassName:String

Doc from java.util.logging.LogRecord.setSourceClassName.

the source class name (may be null)

setSourceFileNameback to summary
public void setSourceFileName(final String sourceFileName)

Overrides org.jboss.logmanager.ExtLogRecord.setSourceFileName.

Doc from org.jboss.logmanager.ExtLogRecord.setSourceFileName.

Set the source file name for this log record.

Parameters
sourceFileName:String

the source file name

setSourceLineNumberback to summary
public void setSourceLineNumber(final int sourceLineNumber)

Overrides org.jboss.logmanager.ExtLogRecord.setSourceLineNumber.

Doc from org.jboss.logmanager.ExtLogRecord.setSourceLineNumber.

Set the source line number for this log record.

Parameters
sourceLineNumber:int

the source line number

setSourceMethodNameback to summary
public void setSourceMethodName(final String sourceMethodName)

Overrides org.jboss.logmanager.ExtLogRecord.setSourceMethodName.

Doc from org.jboss.logmanager.ExtLogRecord.setSourceMethodName.

Set the name of the method that (allegedly) issued the logging request.

Parameters
sourceMethodName:String

Doc from java.util.logging.LogRecord.setSourceMethodName.

the source method name (may be null)

setThreadIDback to summary
public void setThreadID(final int threadID)

Overrides org.jboss.logmanager.ExtLogRecord.setThreadID.

Doc from java.util.logging.LogRecord.setThreadID.

Set an identifier for the thread where the message originated.

Parameters
threadID:int

the thread ID

setThrownback to summary
public void setThrown(final Throwable thrown)

Overrides java.util.logging.LogRecord.setThrown.

Doc from java.util.logging.LogRecord.setThrown.

Set a throwable associated with the log event.

Parameters
thrown:Throwable

a throwable (may be null)

writeReplaceback to summary
protected Object writeReplace()