
|
If you were logged in you would be able to see more operations.
|
|
QuickFIX/J
Created: 21/Jul/07 02:20 AM
Updated: 27/Jul/07 02:36 PM
|
|
| Component/s: |
Engine
|
| Affects Version/s: |
1.2.1
|
| Fix Version/s: |
None
|
|
|
I have an app that's using SLF4JLogFactory and i have the slf4j-logj4 jar in the path, so in the end it's using log4j to print log messages.
The entries in the log4j.properties file are parsed and used when the app starts up, so whatever i have setup drives the filtering of the output.
However, if i modify the log4j file after the app starts up, the changes never take effect - the same messages get printed, regardless of whether or not i turn certain categories on/off.
Anybody else seeing something similar? I couldn't trace through in the QFJ code where that would make a difference - seems that SLF4J/Log4J would handle that on their own.
Just wondering if maybe we are not setting SLF4J/Log4J up correctly.
|
|
Description
|
I have an app that's using SLF4JLogFactory and i have the slf4j-logj4 jar in the path, so in the end it's using log4j to print log messages.
The entries in the log4j.properties file are parsed and used when the app starts up, so whatever i have setup drives the filtering of the output.
However, if i modify the log4j file after the app starts up, the changes never take effect - the same messages get printed, regardless of whether or not i turn certain categories on/off.
Anybody else seeing something similar? I couldn't trace through in the QFJ code where that would make a difference - seems that SLF4J/Log4J would handle that on their own.
Just wondering if maybe we are not setting SLF4J/Log4J up correctly. |
Show » |
|
|
Toli, I think this behaviour is standard. We use plain log4j in our processes and log4j reads
the config once at startup.
On the other hand, e.g. the JBoss app server refreshes properties regularly.
Actually, this depends how log4j is used programmatically. I remember some methods / classes in the API
to support this, but at moment I forgot where they are...
So I guess this should be handled inside the SL4J adapter code. Did you check whether they support some
config do enable this?
Cheers, Jörg