简体   繁体   English

减少骆驼FTP组件日志记录

[英]Reduce Camel FTP Component Logging

I am using the Camel FTP component (but I guess it doesn't matter specifically which one) and every 2 seconds I get a connected and logged in message in my log file, as below. 我使用的是Camel FTP组件(但是我想这与哪个组件无关),并且每2秒钟我就会在日志文件中获得一条连接并登录的消息,如下所示。 I am using log4j and have it set to logging level to info . 我正在使用log4j并将其设置为info的日志记录级别。

INFO org.apache.camel.component.file.remote.FtpConsumer - Connected and logged in to: INFO org.apache.camel.component.file.remote.FtpConsumer-已连接并登录到:

Is there a way to reduce the logging on this (or any) component, as I do not need this to be repeated every 2 seconds. 有没有一种方法可以减少此(或任何)组件的日志记录,因为我不需要每2秒重复一次。

My ftp command now has disconnect=true added to stop the server closed connection message from appearing, but this has been replaced by the message above. 我的ftp命令现在添加了disconnect=true以阻止服务器关闭的连接消息出现,但是上面的消息已代替了该消息。

from("ftp://"+ftpLocation+"/?delete=true&initialDelay=5000&delay=2000&disconnect=true")

Thanks in advance. 提前致谢。

克劳斯•易卜生(克劳斯易卜生)回答了这里的一张票

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM