[slf4j-user] SLF4J implementation for Eclipse logging?

Ceki Gulcu ceki at qos.ch
Wed Mar 25 12:07:36 CET 2009


Hello Eric,

Copy-paste from slf4j-simple should be fairly easy. Please holler if you run 
into difficulties.

Eric Jain wrote:
> 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?

-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch



More information about the slf4j-user mailing list