use of net.sf.eclipsecs.core.util.EclipseLogHandler in project eclipse-cs by checkstyle.
the class CheckstylePlugin method start.
/**
* {@inheritDoc}
*/
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
mAddonExtensionClassLoader = new ExtensionClassLoader(context.getBundle(), ADDON_PROVIDER_EXT_PT_ID);
try {
// $NON-NLS-1$
Logger checkstyleErrorLog = Logger.getLogger("com.puppycrawl.tools.checkstyle.ExceptionLog");
checkstyleErrorLog.addHandler(new EclipseLogHandler(this));
checkstyleErrorLog.setLevel(Level.ALL);
} catch (Exception ioe) {
CheckstyleLog.log(ioe);
}
}
Aggregations