Search in sources :

Example 1 with EclipseLogHandler

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);
    }
}
Also used : ExtensionClassLoader(net.sf.eclipsecs.core.util.ExtensionClassLoader) EclipseLogHandler(net.sf.eclipsecs.core.util.EclipseLogHandler) Logger(java.util.logging.Logger)

Aggregations

Logger (java.util.logging.Logger)1 EclipseLogHandler (net.sf.eclipsecs.core.util.EclipseLogHandler)1 ExtensionClassLoader (net.sf.eclipsecs.core.util.ExtensionClassLoader)1