Here is a small example to do the same ,
if u have a plugin class then say MyPlugin that extends AbstrarctUIPlugin then u can a have method in that class that does the logging for you .
public static void log(String message , int status ){
getDefault().getLog().log(new Status(status, getPluginID( ), message,null) );
}
the values , status can take are like :
- IStatus.ERROR
- IStatus.WARNING
No comments:
Post a Comment