On Mon, Jul 18, 2011 at 8:27 PM, Echo <ahmed.osama....@gmail.com> wrote: > Hello , > Actually I have modified my code as I misunderstood u : > > log4j.rootLogger=INFO, out,sylk,osgi:VmLogAppender > > Now it logs everything on BOTH files . > I just need when I log like the follwong from camel : > > process(doSmth).log(LoggingLevel.INFO,"new","Hello New Logger") > > JUST in that case to go and log into the new.log >
I would assume you need to configure the category something like this: log4j.logger.new=INFO, new Where that last "new" is the appender name. And the first "new" is the log category name used in the Java code. > -- > View this message in context: > http://camel.465427.n5.nabble.com/Log-into-an-additional-file-at-Apache-Karaf-using-DSL-tp4600390p4600588.html > Sent from the Camel Development mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/