I'd like to have code that uses the SLF4J API to use the logging
system built into Eclipse (when run in an Eclipse plug-in or an RCP
application). Delegating logging to Eclipse via a custom logger is
quite simple:

    public void error(String message, Throwable t) {
        ILog logger = Platform.getLog(Platform.getBundle(id));
        logger.log(new Status(IStatus.ERROR, id, message, t));
    }

What's the simplest way to create an SLF4J logger that delegates in
this manner (if such a thing doesn't exist already)? Copy-paste from
slf4j-simple?
_______________________________________________
user mailing list
user@slf4j.org
http://www.slf4j.org/mailman/listinfo/user

Reply via email to