public interface LogEntry
The LogEntry interface provides the methods to access the information contained in an individual LogService log entry. A LogEntry may be acquired from the LogReaderService.getLog() method or by registering a LogListener.
Member Summary | |
---|---|
Methods | |
public Bundle | getBundle() |
The bundle that created the LogEntry. | |
public Throwable | getException() |
The exception object associated with the LogEntry. | |
public int | getLevel() |
The severity level of the LogEntry. | |
public String | getMessage() |
The human readable message associated with the LogEntry. | |
public ServiceReference | getServiceReference() |
The ServiceReference for the service associated with the LogEntry. | |
public long | getTime() |
The value of System.currentTimeMillis() at the time the LogEntry was created. |
public Bundle getBundle()
The bundle that created the LogEntry.
Returns: The bundle that created the LogEntry or null if no bundle is associated with the LogEntry.
public java.lang.Throwable getException()
The exception object associated with the LogEntry.
Returns: Throwable object of the exception associated with the LogEntry or null if no exception is associated.
public int getLevel()
The severity level of the LogEntry. This is one of the severity levels defined by LogService.
Returns: Severity level of the LogEntry.
See Also: LogService.LOG_ERROR, LogService.LOG_WARNING, LogService.LOG_INFO, LogService.LOG_DEBUG
public java.lang.String getMessage()
The human readable message associated with the LogEntry.
Returns: String containing the message associated with the LogEntry.
public ServiceReference getServiceReference()
The ServiceReference for the service associated with the LogEntry.
Returns: ServiceReference for the service associated with the LogEntry or null if no ServiceReference was provided.
public long getTime()
The value of System.currentTimeMillis() at the time the LogEntry was created.
Returns: The system time in milliseconds when the LogEntry was created
3.138.37.191