[prev in list] [next in list] [prev in thread] [next in thread]
List: slf4j-user
Subject: Re: [slf4j-user] SLF4J implementation for Eclipse logging?
From: Ceki Gulcu <ceki () qos ! ch>
Date: 2009-03-25 11:07:36
Message-ID: 49CA1078.10008 () qos ! ch
[Download RAW message or body]
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
_______________________________________________
user mailing list
user@slf4j.org
http://www.slf4j.org/mailman/listinfo/user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic