Now i'm using camel as routes and camel-nmr to send and receive message in servicemix4.5.1. And i have a log4j.properties file in the maven project (/src/main/recources). When run the servicemix.bat and put the jar file of the project deployed by "maven package", the routes are working.
But the problem is that,output files defined in the log4j.properties are not created. And the logs are all printed into the servicemix.log . Could you give me some help? The log4j.properties as the following. log4j.category.org.springframework = INFO, org.springframework log4j.appender.org.springframework = org.apache.log4j.RollingFileAppender log4j.appender.org.springframework.maxFileSize=10MB log4j.appender.org.springframework.maxBackupIndex=10 log4j.appender.org.springframework.file = @log@/@[email protected] log4j.appender.org.springframework.layout = org.apache.log4j.PatternLayout log4j.appender.org.springframework.layout.conversionPattern = %d (%t) %-5p %-30.30c{2} %x - %m %n log4j.appender.org.springframework.append = true log4j.category.org.hibernate = INFO, org.hibernate log4j.appender.org.hibernate = org.apache.log4j.RollingFileAppender log4j.appender.org.hibernate.maxFileSize=10MB log4j.appender.org.hibernate.maxBackupIndex=10 log4j.appender.org.hibernate.file = @log@/@[email protected] log4j.appender.org.hibernate.layout = org.apache.log4j.PatternLayout log4j.appender.org.hibernate.layout.conversionPattern = %d (%t) %-5p %-30.30c{2} %x - %m %n log4j.appender.org.hibernate.append = true ....... -- View this message in context: http://servicemix.396122.n5.nabble.com/custom-log4j-properties-doesn-t-work-in-servicemix4-5-1-tp5717569.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
