Fantastic, But have small issue here. I have 4 bundles and using above setting it logs all DEBUG messages to 4 different files. What I want to log all those my bundle's messages to one file.
I tried with different way but no luck. like i tried following Added following to org.ops4j.pax.logging.cfg file log4j.category.XXXX=DEBUG,mybundle log4j.category.YYYY=DEBUG,mybundle log4j.category.ZZZZ=DEBUG,mybundle # mybundle appender log4j.appender.mybundle = org.apache.log4j.RollingFileAppender log4j.appender.mybundle.layout = org.apache.log4j.PatternLayout log4j.appender.mybundle.layout.ConversionPattern=%d | %-5.5p | %-16.16t | %-32.32c{1} | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n log4j.appender.mybundle.file = C:\\Installer\\Apache\\apache-servicemix-4.5.1\\data/log/mybundle.log log4j.appender.mybundle.append = true log4j.appender.mybundle.maxFileSize=10MB log4j.appender.mybundle.maxBackupIndex=10 After doing this now it logs DEBUG message to mybundle.log as well as to servicemix.log file (both files). I want to log my DEBUG messages to mybundle.log file not in servicemix.log and all others to servicemix.log. -- View this message in context: http://servicemix.396122.n5.nabble.com/How-to-change-logging-level-for-particular-component-in-servicemix-tp5716633p5716644.html Sent from the ServiceMix - User mailing list archive at Nabble.com.