Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Logging to Eclipse logger
Logging to Eclipse logger [message #335654] Mon, 20 April 2009 05:51 Go to next message
Robin Rosenberg is currently offline Robin Rosenberg
Messages: 324
Registered: July 2009
Senior Member
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 14:49 Go to previous message
Alexander Karnstedt is currently offline Alexander Karnstedt
Messages: 68
Registered: July 2009
Member
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
Previous Topic:A crazy application question
Next Topic:Trying to port to OSX
Goto Forum:
  


Current Time: Wed Sep 17 17:55:09 GMT 2014

Powered by FUDForum. Page generated in 0.02012 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software