Thanks for the answer Christian,

After re-read my question, I think that I am not enough specific and not
explain correctly my point. :)

In my case I scan a directory and would like to produce one log ( logEIP )
 file per file processed.

something like :

from("file://C:/test)
     .log("found ${file:name}")
     .process(myprocess1)
     .log("end processed1  ${file:name}")
     .process(myprocess2)
     .log("end processed2  ${file:name}")
.end();

I have a classical log4j.properties

log4j.rootLogger=INFO, A1
log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.File=mylogfile.log
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{dd/MM/yyyy HH\:mm\:ss,SSS}
%-5p [%t] - %m%n


Adn I would like to do something like :

  props.setProperty("log4j.appender.file.File","<camel current file name>.log");
      LogManager.resetConfiguration();
      PropertyConfigurator.configure(props);
     }

But with no specific process, is it possible ?

thanks







2013/4/11 Christian Müller <christian.muel...@gmail.com>

> You can configure it in your logging framework.
>
> Sent from a mobile device
> Am 11.04.2013 13:12 schrieb "jeff" <jflebesc...@gmail.com>:
>
> Hey !
>
> I think that it is not possible, but is it possible to send log message :
>
>
> from("activemq:orders").to("log:com.mycompany.order?level=DEBUG").to("bean:processOrder");
>
> in a file ?
>
> Something like :
>
>
> from("activemq:orders").to("log:com.mycompany.order?level=DEBUG&file=log/${file:name}.log
> ").to("bean:processOrder");
>
>
>
> Thanks !
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Log-in-file-tp5730713.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to