Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Redirect logs
Redirect logs [message #467775] Thu, 10 May 2007 17:15 Go to next message
Ray is currently offline RayFriend
Messages: 9
Registered: July 2009
Junior Member
Hi,

I'm currently using log4j for my application. I would like to have all
the logs in the same file and need to redirect the logging events that are
going to .metadata/.log. I have already written an ILogListener to pass
to Platform.addLogListener(), but certain messages are still going to
metadata/.log.

Is it possible to redirect all logging events so .metadata/.log is no
longer used?

Thanks,
Ray
Re: Redirect logs [message #467777 is a reply to message #467775] Thu, 10 May 2007 17:22 Go to previous message
David Kyle is currently offline David KyleFriend
Messages: 125
Registered: July 2009
Senior Member
Ray,

We used "Plugging in a logging framework for Eclipse plug-ins" by Manoel
Marques to redirect log4j and Eclipse log events to various outputs/formats.

http://www-128.ibm.com/developerworks/library/os-eclog/

The other trick we did was to catch, log and then rethrow all exceptions in
our implementation of IPlatformRunnable#run(Object).

David

"Ray" <ray.chen@rbccm.com> wrote in message
news:d7ea58362e36dca31ccb084058fca1e1$1@www.eclipse.org...
> Hi,
>
> I'm currently using log4j for my application. I would like to have all
> the logs in the same file and need to redirect the logging events that are
> going to .metadata/.log. I have already written an ILogListener to pass
> to Platform.addLogListener(), but certain messages are still going to
> metadata/.log.
>
> Is it possible to redirect all logging events so .metadata/.log is no
> longer used?
>
> Thanks,
> Ray
>
Previous Topic:JFace dependencies for standalone application?
Next Topic:How to refresh the Tree Element while expanding
Goto Forum:
  


Current Time: Thu Apr 25 12:47:41 GMT 2024

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

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

Back to the top