public class FrameworkLogEntry extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CANCEL
Status type severity (bit mask, value 8) indicating this log entry represents a cancellation.
|
static int |
ERROR
Severity constant (bit mask, value 4) indicating this log entry represents an error.
|
static int |
INFO
Severity constant (bit mask, value 1) indicating this log entry is informational only.
|
static int |
OK
Severity constant (value 0) indicating this log entry represents the nominal case.
|
static int |
WARNING
Severity constant (bit mask, value 2) indicating this log entry represents a warning.
|
| Constructor and Description |
|---|
FrameworkLogEntry(Object context,
String entry,
int severity,
int bundleCode,
String message,
int stackCode,
Throwable throwable,
FrameworkLogEntry[] children)
Constructs a new FrameworkLogEntry
|
FrameworkLogEntry(String entry,
int severity,
int bundleCode,
String message,
int stackCode,
Throwable throwable,
FrameworkLogEntry[] children)
Constructs a new FrameworkLogEntry
|
FrameworkLogEntry(String entry,
String message,
int stackCode,
Throwable throwable,
FrameworkLogEntry[] children)
Constructs a new FrameworkLogEntry
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBundleCode()
Returns the bundle-specific code describing the outcome.
|
FrameworkLogEntry[] |
getChildren() |
Object |
getContext()
Returns the context associated with this
FrameworkLogEntry
object. |
String |
getEntry() |
String |
getMessage() |
int |
getSeverity()
Returns the severity.
|
int |
getStackCode() |
Throwable |
getThrowable() |
public static final int OK
getSeverity(),
Constant Field Valuespublic static final int INFO
getSeverity(),
Constant Field Valuespublic static final int WARNING
getSeverity(),
Constant Field Valuespublic static final int ERROR
getSeverity(),
Constant Field Valuespublic static final int CANCEL
getSeverity(),
Constant Field Valuespublic FrameworkLogEntry(String entry, String message, int stackCode, Throwable throwable, FrameworkLogEntry[] children)
entry - the entrymessage - the messagestackCode - the stack codethrowable - the throwablechildren - the childrenpublic FrameworkLogEntry(String entry, int severity, int bundleCode, String message, int stackCode, Throwable throwable, FrameworkLogEntry[] children)
entry - the entryseverity - the severitybundleCode - the bundle codemessage - the messagestackCode - the stack codethrowable - the throwablechildren - the childrenpublic FrameworkLogEntry(Object context, String entry, int severity, int bundleCode, String message, int stackCode, Throwable throwable, FrameworkLogEntry[] children)
context - the contextentry - the entryseverity - the severitybundleCode - the bundle codemessage - the messagestackCode - the stack codethrowable - the throwablechildren - the childrenpublic FrameworkLogEntry[] getChildren()
public String getEntry()
public String getMessage()
public int getStackCode()
public Throwable getThrowable()
public int getSeverity()
CANCEL - cancelation occurredERROR - a serious error (most severe)WARNING - a warning (less severe)INFO - an informational ("fyi") message (least severe)OK - everything is just fine
The severity of a multi-entry log is defined to be the maximum
severity of any of its children, or OK if it has
no children.
OK, ERROR,
INFO, WARNING, or CANCELpublic int getBundleCode()
public Object getContext()
FrameworkLogEntry
object.Object containing the context associated with this
FrameworkLogEntry object;null if no context is
associated with this FrameworkLogEntry object.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.