Redirect logs [message #467775] |
Thu, 10 May 2007 13:15  |
Eclipse User |
|
|
|
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 13:22  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03435 seconds