Package org.eclipse.equinox.log
Interface ExtendedLogEntry
- All Superinterfaces:
LogEntry
Extends the OSGi Log Services
LogEntry
object to provide additional context information.
Otherwise similarly accessible by registering a LogListener
object.- Since:
- 3.7
- See Also:
- Thread Safe:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the context associated with thisLogEntry
object.Returns the logger name associated with thisLogEntry
object.long
Returns the log sequence number associated with thisLogEntry
object.long
Returns the thread id of the logging thread associated with thisLogEntry
object.Returns the thread name of the logging thread associated with thisLogEntry
object.Methods inherited from interface org.osgi.service.log.LogEntry
getBundle, getException, getLevel, getLocation, getLogLevel, getMessage, getSequence, getServiceReference, getThreadInfo, getTime
-
Method Details
-
getLoggerName
String getLoggerName()Returns the logger name associated with thisLogEntry
object.- Specified by:
getLoggerName
in interfaceLogEntry
- Returns:
String
containing the logger name associated with thisLogEntry
object;null
if no logger name is associated with thisLogEntry
object.
-
getContext
Object getContext()Returns the context associated with thisLogEntry
object.- Returns:
Object
containing the context associated with thisLogEntry
object;null
if no context is associated with thisLogEntry
object.
-
getThreadId
long getThreadId()Returns the thread id of the logging thread associated with thisLogEntry
object.- Returns:
long
containing the thread id associated with thisLogEntry
object.
-
getThreadName
String getThreadName()Returns the thread name of the logging thread associated with thisLogEntry
object.- Returns:
String
containing the message associated with thisLogEntry
object.
-
getSequenceNumber
long getSequenceNumber()Returns the log sequence number associated with thisLogEntry
object.- Returns:
long
containing the sequence number associated with thisLogEntry
object.
-