Hi ssheth, Add in your pom: <Embed-Dependency>log4j</Embed-Dependency> in the instructions of the maven-bundle-plugin.
After building your bundle you can check the MANIFEST.MF file, It should say: Embed-Dependency: log4j If you don't do this, he'll try to import the log4j package and finds one exported from the PAX Logging. Regards, Hans 2010/8/5 ssheth <[email protected]>: > > We want to include environment specific log4.properties files inside our > bundle to log bundle specific messages in seperate files. We don't want to > add this configuration in org.ops4j.pax.logging.cfg files. > > When we deploy the bundle some how the configuration in our log4.properties > is never read. > > Any suggestion related to what we are missing here are welcome. > > Here are the contents of my log4.properties: > > # Global logging configuration > log4j.rootLogger=ERROR, stdout > > #My App Logger Created A1 > log4j.logger.MyAppLogger=DEBUG, MyLog > log4j.additivity.AppLogging=false > > log4j.appender.MyLog=org.apache.log4j.DailyRollingFileAppender > log4j.appender.MyLog.DatePattern='.'yyyy-MM-dd > log4j.appender.MyLog.File=C\:\\Apache\\apache-servicemix-4.2.0\\data\\applog\\My-log.log > log4j.appender.MyLog.layout=org.apache.log4j.PatternLayout > log4j.appender.MyLog.layout.ConversionPattern=%d %p [%c] - %m%n > log4j.appender.MyLog.append=true > > > > > > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/Log4-properties-tp2265778p2265778.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. >
