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 thisLogEntryobject.Returns the logger name associated with thisLogEntryobject.longReturns the log sequence number associated with thisLogEntryobject.longReturns the thread id of the logging thread associated with thisLogEntryobject.Returns the thread name of the logging thread associated with thisLogEntryobject.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 thisLogEntryobject.- Specified by:
getLoggerNamein interfaceLogEntry- Returns:
Stringcontaining the logger name associated with thisLogEntryobject;nullif no logger name is associated with thisLogEntryobject.
-
getContext
Object getContext()Returns the context associated with thisLogEntryobject.- Returns:
Objectcontaining the context associated with thisLogEntryobject;nullif no context is associated with thisLogEntryobject.
-
getThreadId
long getThreadId()Returns the thread id of the logging thread associated with thisLogEntryobject.- Returns:
longcontaining the thread id associated with thisLogEntryobject.
-
getThreadName
String getThreadName()Returns the thread name of the logging thread associated with thisLogEntryobject.- Returns:
Stringcontaining the message associated with thisLogEntryobject.
-
getSequenceNumber
long getSequenceNumber()Returns the log sequence number associated with thisLogEntryobject.- Returns:
longcontaining the sequence number associated with thisLogEntryobject.
-