-
Bug
-
Resolution: Done
-
Critical
-
jboss-fuse-6.3
-
None
-
%
-
-
I have a project that uses MDCSiftingAppender with custom Sift keys so each application (might consist of multiple bundles) will log to their own log file depending on the custom Sift key/value pair.
After deploying the profile to a fabric child container, everything works fine. And logs are appended to appropriate application specific logs.
However, after the fabric child container restarts, it appears that there are two issues:
1. there is always a ".log" file created without any prefix;
2. the MDCSiftingAppender fails randomly in terms of appending to application specific logs based on the custom Sift key/value pair. It sometimes fails by appending all application specific logs to the ".log" file (fails) and other times, it works fine by appending to application specific logs.
The application in question has three bundles and one is a common bundle (common-bundle) with all common Java classes that might be used by different bundles/applications. The second one is a camel route using camel cxfrs endpoint as a proxy (camel-cxfrs-spring). The third one is a bundle using cxf jaxrs endpoint for JAXRS server implementation (jaxrs-server-spring).
The "camel-cxfrs-spring" bundle uses camel MDC logging and custom UnitOfWork and UnitOfWorkFactory. The "jaxrs-server-spring" uses CXF interceptor to add and remove MDC key/value pair if necessary.
- duplicates
-
ENTESB-7544 Logging stops working with Camel and Sift / MDC
- Closed
- relates to
-
ENTESB-9503 Configuring "org.ops4j.pax.logging" properties through JMX causing property placeholders to be replaced
- Closed