|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gmf.runtime.common.core.util.Log
public class Log
A utility for logging errors, warnings, and information. Provides a simple interface for generating logs based on status objects.
| Constructor Summary | |
|---|---|
protected |
Log()
private constructor for the static class. |
| Method Summary | |
|---|---|
static void |
error(Plugin plugin,
int code,
java.lang.String message)
Generates an error log for the specified plug-in, with the specified status code and message. |
static void |
error(Plugin plugin,
int code,
java.lang.String message,
java.lang.Throwable throwable)
Generates an error log for the specified plug-in, with the specified status code, message, and throwable. |
protected static ILog |
getDefault()
Retrieves the default log listener for this log utility. |
static void |
info(Plugin plugin,
int code,
java.lang.String message)
Generates an information log for the specified plug-in, with the specified status code and message. |
static void |
info(Plugin plugin,
int code,
java.lang.String message,
java.lang.Throwable throwable)
Generates an information log for the specified plug-in, with the specified status code, message, and throwable. |
static void |
log(Plugin plugin,
int severity,
int code,
java.lang.String message)
Generates a log for the specified plug-in, with the specified severity, status code, and message. |
static void |
log(Plugin plugin,
int severity,
int code,
java.lang.String message,
java.lang.Throwable throwable)
Generates a log for the specified plug-in, with the specified severity, status code, message, and throwable. |
static void |
log(Plugin plugin,
IStatus status)
Responds to a log request for the specified plug-in based on the specified status object. |
static void |
warning(Plugin plugin,
int code,
java.lang.String message)
Generates a warning log for the specified plug-in, with the specified status code and message. |
static void |
warning(Plugin plugin,
int code,
java.lang.String message,
java.lang.Throwable throwable)
Generates a warning log for the specified plug-in, with the specified status code, message, and throwable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Log()
| Method Detail |
|---|
protected static ILog getDefault()
public static void log(Plugin plugin,
IStatus status)
plugin - The plug-in for which to generate a log.status - The status object on which to base the log.
public static void log(Plugin plugin,
int severity,
int code,
java.lang.String message)
plugin - The plug-in for which to generate a log.severity - The severity of the log.code - The status code for the log.message - The message for the log.
public static void log(Plugin plugin,
int severity,
int code,
java.lang.String message,
java.lang.Throwable throwable)
plugin - The plug-in for which to generate a log.severity - The severity of the log.code - The status code for the log.message - The message for the log.throwable - The throwable for the log.
public static void error(Plugin plugin,
int code,
java.lang.String message)
plugin - The plug-in for which to generate a log.code - The status code for the log.message - The message for the log.
public static void error(Plugin plugin,
int code,
java.lang.String message,
java.lang.Throwable throwable)
plugin - The plug-in for which to generate a log.code - The status code for the log.message - The message for the log.throwable - The throwable for the log.
public static void warning(Plugin plugin,
int code,
java.lang.String message)
plugin - The plug-in for which to generate a log.code - The status code for the log.message - The message for the log.
public static void warning(Plugin plugin,
int code,
java.lang.String message,
java.lang.Throwable throwable)
plugin - The plug-in for which to generate a log.code - The status code for the log.message - The message for the log.throwable - The throwable for the log.
public static void info(Plugin plugin,
int code,
java.lang.String message)
plugin - The plug-in for which to generate a log.code - The status code for the log.message - The message for the log.
public static void info(Plugin plugin,
int code,
java.lang.String message,
java.lang.Throwable throwable)
plugin - The plug-in for which to generate a log.code - The status code for the log.message - The message for the log.throwable - The throwable for the log.
|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.