Customized .log file location [message #496996] |
Thu, 12 November 2009 02:41  |
Eclipse User |
|
|
|
It is an user-request of high priority for our RCP programs that
the log files (primarily the .log file, but there are two different
log files types as well from the Eclipse framework) should be positioned
at a different location than the default location (workspace/.metadata).
The important point is: The decision for this needs to support a
*dynamic* and programmatic specification and cannot be provided as
constants in the launching configuration.
I would be very happy if someone could give me a pointer how this may be
realized. During a class search related to logging I stumbled across
FrameworkAdaptor, AdaptorHook, and BaseAdaptor, but it is unclear to me:
a) Which of these needs to be implemented (if at all) and how that can
be done in a way that restricts to the specification of the log file
location (E.g. I don't want to re-implement BaseAdaptor, if possible)
b) How to "inject" this implementation into the RCP such that it will be
used (I use a feature based headless build, if this information is
relevant).
Thanks in advance,
Daniel Krügler
|
|
|
|
Re: Customized .log file location [message #505525 is a reply to message #496996] |
Thu, 31 December 2009 12:52  |
Eclipse User |
|
|
|
If .log log file may still exists and early log events can be ignored, you can register your own log listener via Platform.addLogListener(ILogListener). Than your are free to do anything you want with log events.
|
|
|
Powered by
FUDForum. Page generated in 0.44046 seconds