A LogEntry object may be acquired from the
LogReaderService.getLog method or by registering a
LogListener object.
| Modifier and Type | Method and Description |
|---|---|
| public Bundle | Returns: The bundle that created thisLogEntry object;
null if no bundle is associated with this
LogEntry object.Returns the bundle that created this |
| public Throwable | Returns: Throwable object of the exception associated with this
LogEntry;null if no exception is associated with
this LogEntry object.Returns the exception object associated with this |
| public int | Returns: Integer level of thisLogEntry object.
Deprecated
Since 1.4. Replaced by
getLogLevel().
Returns the integer level of this |
| public StackTraceElement | Returns: The location information of the creation of thisLogEntry
object.Returns the location information of the creation of this |
| public String | |
| public LogLevel | |
| public String | Returns: String containing the formatted message associated with
this LogEntry object.Returns the formatted message associated with this |
| public long | Returns: The sequence number for thisLogEntry object.Returns the sequence number for this |
| public ServiceReference | Returns: ServiceReference object for the service associated with
this LogEntry object; null if no
ServiceReference object was provided.Returns the |
| public String | Returns: A string representing the thread which created thisLogEntry object.Returns a string representing the thread which created this
|
| public long | Returns: The system time in milliseconds when thisLogEntry object
was created.Returns the value of |
| getBundle | back to summary |
|---|---|
| public Bundle getBundle() Returns the bundle that created this
| |
| getException | back to summary |
|---|---|
| public Throwable getException() Returns the exception object associated with this In some implementations, the returned exception may not be the original exception. To avoid references to a bundle defined exception class, thus preventing an uninstalled bundle from being garbage collected, the Log Service may return an exception object of an implementation defined Throwable subclass. The returned object will attempt to provide as much information as possible from the original exception object such as the message and stack trace.
| |
| getLevel | back to summary |
|---|---|
| public int getLevel()
Deprecated Since 1.4. Replaced by Returns the integer level of this
If one of the
| |
| getLocation | back to summary |
|---|---|
| public StackTraceElement getLocation() Returns the location information of the creation of this
| |
| getLoggerName | back to summary |
|---|---|
| public String getLoggerName() Returns the name of the | |
| getLogLevel | back to summary |
|---|---|
| public LogLevel getLogLevel() Returns the level of this
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() Returns the formatted message associated with this
| |
| getSequence | back to summary |
|---|---|
| public long getSequence() Returns the sequence number for this A unique, non-negative value that is larger than all previously assigned values since the log implementation was started. These values are transient and are reused upon restart of the log implementation.
| |
| getServiceReference | back to summary |
|---|---|
| public ServiceReference Returns the
| |
| getThreadInfo | back to summary |
|---|---|
| public String getThreadInfo() Returns a string representing the thread which created this
This string must contain the name of the thread and may contain other information about the thread.
| |
| getTime | back to summary |
|---|---|
| public long getTime() Returns the value of
| |