Hi Charles,

If your two bundles use the same package name, the only way to achieve that is to package a log4j.xml in your bundle classpath. It's not possible to use a global ops4j logging property file as it will not be able to distinguish the two bundles. Maybe we can make an pax-logging improvement to use ThreadContextClassLoader to load the log4j or something like that but, in state, definetely, it's not possible.

Regards
JB

On 06/08/2010 02:18 PM, Charles Moulliard wrote:
Hi,

Can we do something like that ?

Bundle 1 : packages -->  com.mycompany.myservice.model -->  fileAppender
: bundles1.log
Bundle 2 : packages -->  com.mycompany.myservice.model -->  fileAppender
: bundles2.log

Remark : the package names are the same but deployed in two different bundles.

KR,

Charles Moulliard

Senior Enterprise Architect (J2EE, .NET, SOA)
Apache Camel/ServiceMix Committer

*******************************************************************
- Blog : http://cmoulliard.blogspot.com
- Twitter : http://twitter.com/cmoulliard
- Linkedlin : http://www.linkedin.com/in/charlesmoulliard

Reply via email to