LogEntry

Syntax

public interface LogEntry

Description

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 BundlegetBundle()
 The bundle that created the LogEntry.
public ThrowablegetException()
 The exception object associated with the LogEntry.
public intgetLevel()
 The severity level of the LogEntry.
public StringgetMessage()
 The human readable message associated with the LogEntry.
public ServiceReferencegetServiceReference()
 The ServiceReference for the service associated with the LogEntry.
public longgetTime()
 The value of System.currentTimeMillis() at the time the LogEntry was created.

Methods

getBundle()
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.

getException()
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.

getLevel()
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

getMessage()
public java.lang.String getMessage()

The human readable message associated with the LogEntry.

Returns: String containing the message associated with the LogEntry.

getServiceReference()
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.

getTime()
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

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.174.0