How to add log4j.xml to RAP-Application classpath [message #135494] |
Mon, 08 June 2009 08:20  |
Eclipse User |
|
|
|
Hello,
I want to use log4j in my RAP application. The plugin that contains the
log4j libs provides factories for creating logger instances. These loggers
are used in other plugins. I can put a log4j.xml in the classpath of this
plugin - this works fine. But this plugin is used in an other application,
too. So I have to use an external log4j.xml-file.
In a RCP-application I use an entry for declaring the path to the
log4j.xml:
log4j.configuration=file:configuration/log4j.xml
The configuration directory contains the log4j.xml and so its easy to
change the configuration before starting the application.
If I add that entry to the config.ini of the RAP-application this
parameter is not passed to the jvm. I tried to declare it in the
launch.ini, too.
What is the best way to bind an external log4j configuration file?
best regards,
p-lex
|
|
|
|
|
Re: How to add log4j.xml to RAP-Application classpath [message #521563 is a reply to message #135494] |
Wed, 17 March 2010 23:16  |
Eclipse User |
|
|
|
Hi,
May be you can consider to use pax logging to solve your problem,see [1].
[1] http://www.eclipse.org/forums/index.php?t=msg&&th=16 4627&goto=521363#msg_521363
Best Regards,
Cheney
> Hello,
>
> I want to use log4j in my RAP application. The plugin that contains the
> log4j libs provides factories for creating logger instances. These
> loggers are used in other plugins. I can put a log4j.xml in the
> classpath of this plugin - this works fine. But this plugin is used in
> an other application, too. So I have to use an external log4j.xml-file.
>
> In a RCP-application I use an entry for declaring the path to the
> log4j.xml:
> log4j.configuration=file:configuration/log4j.xml
>
> The configuration directory contains the log4j.xml and so its easy to
> change the configuration before starting the application.
>
> If I add that entry to the config.ini of the RAP-application this
> parameter is not passed to the jvm. I tried to declare it in the
> launch.ini, too.
>
> What is the best way to bind an external log4j configuration file?
>
> best regards,
>
> p-lex
>
|
|
|
Powered by
FUDForum. Page generated in 0.05919 seconds