If you define your own appender in the config it should work right away. maybe your config isn't correct yet.
regards, Achim 2014-06-22 20:02 GMT+02:00 a175335 <[email protected]>: > hi > > thanks for your document,my custom appender can work now ,but how can I > use it in my won bundles? > > the code ' LOG.info(context.getBundle().getSymbolicName() + "start!!"); ' > has not work. The log message is > > not written into the file which named file.log.Should I configue the file > of 'log4j.porperties ' used my custom appender in my won bundles? > > > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/how-to-use-the-ops4j-logging-tp5720883p5721032.html > Sent from the ServiceMix - Dev mailing list archive at Nabble.com. > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Software Architect / Project Manager / Scrum Master
