configuring log4j [message #897555] |
Tue, 24 July 2012 09:31  |
Eclipse User |
|
|
|
Hi,
I'm taking the risk of asking a stupid question, but I just can't get it...
I have written a log4j fragment with a log4j.properties and it works fine with a launch configuration where org.eclipse.xtext.logging is not present. But when I install my plugin as an user, how do I make sure my configuration is the one that gets used? The xtext.logging fragment is already installed with the SDK.
Should I load the properties file and use it to configure log4j myself, instead of relying on it finding the right config file?
In a related topic, if I want to use an EclipseLogAppender like xtext.logging does, I have to implement another one in my code, right?
best regards,
Vlad
|
|
|
Re: configuring log4j [message #897562 is a reply to message #897555] |
Tue, 24 July 2012 09:57   |
Eclipse User |
|
|
|
The only chance is to make sure that xtext.logging is not on the
classpath or that your fragment has a higher precedence. I'm not sure
about the latter ...
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 24.07.12 15:31, schrieb Vlad Dumitrescu:
> Hi,
>
> I'm taking the risk of asking a stupid question, but I just can't get it...
>
> I have written a log4j fragment with a log4j.properties and it works
> fine with a launch configuration where org.eclipse.xtext.logging is not
> present. But when I install my plugin as an user, how do I make sure my
> configuration is the one that gets used? The xtext.logging fragment is
> already installed with the SDK.
>
> Should I load the properties file and use it to configure log4j myself,
> instead of relying on it finding the right config file?
>
> In a related topic, if I want to use an EclipseLogAppender like
> xtext.logging does, I have to implement another one in my code, right?
> best regards,
> Vlad
>
|
|
|
|
|
Re: configuring log4j [message #902687 is a reply to message #902686] |
Sun, 19 August 2012 11:38  |
Eclipse User |
|
|
|
Thanks Andreas,
Right now I do the configuration manually, which has also the advantage that I can watch for a local configuration file and reload it if it changes. More exactly, if I want to watch it anyway, doing the initial configuration manually is not a big deal.
regards,
Vlad
|
|
|
Powered by
FUDForum. Page generated in 0.02737 seconds