Top Description Fields Constructors Methods
org.jboss.modules.log

pack-priv Class ModuleLogRecord

extends LogRecord
Class Inheritance
Imports
java.util.logging.LogRecord, .Level

A log record class which knows how to divine the proper class and method name.

Field Summary

Modifier and TypeField and Description
private static final String
private boolean
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
ModuleLogRecord(final Level level, final String msg)

Method Summary

Modifier and TypeMethod and Description
public String
getSourceClassName()

Overrides java.util.logging.LogRecord.getSourceClassName.

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

Overrides java.util.logging.LogRecord.getSourceMethodName.

Get the name of the method that (allegedly) issued the logging request.
private void
public void
setSourceClassName(final String
the source class name (may be null)
sourceClassName
)

Overrides java.util.logging.LogRecord.setSourceClassName.

Set the name of the class that (allegedly) issued the logging request.
public void
setSourceMethodName(final String
the source method name (may be null)
sourceMethodName
)

Overrides java.util.logging.LogRecord.setSourceMethodName.

Set the name of the method that (allegedly) issued the logging request.
protected Object
Inherited from java.util.logging.LogRecord:
getInstantgetLevelgetLoggerNamegetLongThreadIDgetMessagegetMillisgetParametersgetResourceBundlegetResourceBundleNamegetSequenceNumbergetThreadIDgetThrownsetInstantsetLevelsetLoggerNamesetLongThreadIDsetMessagesetMillissetParameterssetResourceBundlesetResourceBundleNamesetSequenceNumbersetThreadIDsetThrown

Field Detail

LOGGER_CLASS_NAMEback to summary
private static final String LOGGER_CLASS_NAME
resolvedback to summary
private boolean resolved
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.logging.LogRecord.serialVersionUID.

Constructor Detail

ModuleLogRecordback to summary
pack-priv ModuleLogRecord(final Level level, final String msg)

Method Detail

getSourceClassNameback to summary
public String getSourceClassName()

Overrides java.util.logging.LogRecord.getSourceClassName.

Doc from java.util.logging.LogRecord.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

the source class name

getSourceMethodNameback to summary
public String getSourceMethodName()

Overrides java.util.logging.LogRecord.getSourceMethodName.

Doc from java.util.logging.LogRecord.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

the source method name

resolveback to summary
private void resolve()
setSourceClassNameback to summary
public void setSourceClassName(final String sourceClassName)

Overrides java.util.logging.LogRecord.setSourceClassName.

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

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

Parameters
sourceClassName:String

the source class name (may be null)

setSourceMethodNameback to summary
public void setSourceMethodName(final String sourceMethodName)

Overrides java.util.logging.LogRecord.setSourceMethodName.

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

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

Parameters
sourceMethodName:String

the source method name (may be null)

writeReplaceback to summary
protected Object writeReplace()