You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by dwarakart <dw...@gmail.com> on 2015/04/10 15:25:12 UTC

Enable INFO level logs on GenericFileOnCompletion when the file transfer completes

Hi All,

It would be of great help to verify the transfer of file/message using
Camel. However, this is logged currently at DEBUG level in
GenericFileOnCompletion.java. Can this logging level be changed to INFO
instead?

If the program runs indefinitely in a poller scenario, it would be good to
know when the files/messages are transferred as this can happen
intermittently.

Summary of request: Change 

		this.log.debug("Done processing file: {} using exchange: {}",
				this.file, exchange);

to 

		this.log.info("Done processing file: {} using exchange: {}",
				this.file, exchange);

Please share your thoughts.

Thanks 
Dwarakart



--
View this message in context: http://camel.465427.n5.nabble.com/Enable-INFO-level-logs-on-GenericFileOnCompletion-when-the-file-transfer-completes-tp5765595.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: Enable INFO level logs on GenericFileOnCompletion when the file transfer completes

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Oh and if you are using from file, then its a scheduled polling
consumer, then you can configure the run logging level.
http://camel.apache.org/polling-consumer.html

On Fri, Apr 10, 2015 at 3:25 PM, dwarakart <dw...@gmail.com> wrote:
> Hi All,
>
> It would be of great help to verify the transfer of file/message using
> Camel. However, this is logged currently at DEBUG level in
> GenericFileOnCompletion.java. Can this logging level be changed to INFO
> instead?
>
> If the program runs indefinitely in a poller scenario, it would be good to
> know when the files/messages are transferred as this can happen
> intermittently.
>
> Summary of request: Change
>
>                 this.log.debug("Done processing file: {} using exchange: {}",
>                                 this.file, exchange);
>
> to
>
>                 this.log.info("Done processing file: {} using exchange: {}",
>                                 this.file, exchange);
>
> Please share your thoughts.
>
> Thanks
> Dwarakart
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Enable-INFO-level-logs-on-GenericFileOnCompletion-when-the-file-transfer-completes-tp5765595.html
> Sent from the Camel Development mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Re: Enable INFO level logs on GenericFileOnCompletion when the file transfer completes

Posted by Claus Ibsen <cl...@gmail.com>.
No its for debug logging as-is.

If you want any kind of info logging then you can use onCompletion /
event notifer / other ways to do your own kind of info logging when an
exchange is done.

On Fri, Apr 10, 2015 at 3:25 PM, dwarakart <dw...@gmail.com> wrote:
> Hi All,
>
> It would be of great help to verify the transfer of file/message using
> Camel. However, this is logged currently at DEBUG level in
> GenericFileOnCompletion.java. Can this logging level be changed to INFO
> instead?
>
> If the program runs indefinitely in a poller scenario, it would be good to
> know when the files/messages are transferred as this can happen
> intermittently.
>
> Summary of request: Change
>
>                 this.log.debug("Done processing file: {} using exchange: {}",
>                                 this.file, exchange);
>
> to
>
>                 this.log.info("Done processing file: {} using exchange: {}",
>                                 this.file, exchange);
>
> Please share your thoughts.
>
> Thanks
> Dwarakart
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Enable-INFO-level-logs-on-GenericFileOnCompletion-when-the-file-transfer-completes-tp5765595.html
> Sent from the Camel Development mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/