Logging to Eclipse logger [message #335654] |
Mon, 20 April 2009 01:51  |
Eclipse User |
|
|
|
Hi,
I have a library that does not depend on Eclipse, but when used in Eclipse
I'd like to see errors go into the Eclipse error log. Is there any way I can
configure Log4J, which is quite ubiqitous and hence I can depend on it,
so it redirects to Eclipe's logging framework when run inside Eclipse.
Obviously, I can write my own Appender, but I'm hoping for an even simpler
answer.
-- robin
|
|
|
Re: Logging to Eclipse logger [message #335696 is a reply to message #335654] |
Wed, 22 April 2009 10:49  |
Eclipse User |
|
|
|
Hi,
Robin Rosenberg schrieb am 20.04.2009 07:51:
> I have a library that does not depend on Eclipse, but when used in Eclipse
> I'd like to see errors go into the Eclipse error log. Is there any way I can
> configure Log4J, which is quite ubiqitous and hence I can depend on it,
> so it redirects to Eclipe's logging framework when run inside Eclipse.
>
I think this post might be of interest:
http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/m sg35496.html
.... I log all messages to an Eclipse-independent logging framework, cause I have
the same problem: parts of my RCP app doesnt depend on Eclipse. Then I use a
logging listener to forward error messages to the UI (Eclipse Log + View)
Anyway, I guess you have to code some kind of Log4j listener that transforms
Log4j entries into Eclipse log entries.
Alex
|
|
|
Powered by
FUDForum. Page generated in 0.01972 seconds