Apache camel 如何停止camel sftp使用者的JSCH日志
我的camel SFTP消费者每10秒连接一次服务器,在每次连接过程中,它都会打印巨大的日志消息,如本文所述 02-05-2016 20:48:34441信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH->kex:client: hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96 02-05-2016 20:48:34441信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH->kex:client: 没有 02-05-2016 20:48:34441信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH->kex:client: 没有 02-05-2016 20:48:34441信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH->kex:client: 02-05-2016 20:48:34441信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH->kex:client: 02-05-2016 20:48:34441信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH->kex: 服务器->客户端aes128 ctr hmac-md5无 02-05-2016 20:48:34441信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH->kex: 客户端->服务器aes128 ctr hmac-md5无 02-05-2016 20:48:34443信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH-> SSH\u MSG\u KEXDH\u INIT已发送 02-05-2016 20:48:34444信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH->期待 SSH_MSG_KEXDH_回复 02-05-2016 20:48:34762信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH-> ssh\u rsa\u验证:签名为真 02-05-2016 20:48:34762警告 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH->永久 将“11.11.11.11”(RSA)添加到已知主机列表中 02-05-2016 20:48:34763信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH-> SSH\u MSG\u已发送新密钥 02-05-2016 20:48:34763信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH-> 收到SSH_MSG_新密钥 02-05-2016 20:48:34763信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH-> SSH\u消息\u服务\u请求已发送 02-05-2016 20:48:35079信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH-> 收到SSH\u消息\u服务\u接受 02-05-2016 20:48:35391信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH-> 可以继续的身份验证: 公钥、键盘交互、密码 02-05-2016 20:48:35391信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH->下一步 身份验证方法:公钥 02-05-2016 20:48:35391信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH-> 可以继续的身份验证:密码 02-05-2016 20:48:35391信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH->下一步 认证方式:密码 02-05-2016 20:48:35707信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH->验证 成功(密码) 02-05-2016 20:48:36662信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]连接到 sftp://username@11.11.11.11:22 02-05-2016 20:48:36662信息 (org.apache.camel.component.file.remote.SftpConsumer)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]已连接并记录 关于:sftp://username@11.11.11.11:22 02-05-2016 20:48:38539信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH->断开连接 从11.11.11.11端口22Apache camel 如何停止camel sftp使用者的JSCH日志,apache-camel,camel-ftp,Apache Camel,Camel Ftp,我的camel SFTP消费者每10秒连接一次服务器,在每次连接过程中,它都会打印巨大的日志消息,如本文所述 02-05-2016 20:48:34441信息 (org.apache.camel.component.file.remote.SftpOperations)[camel (骆驼-99)线#117- sftp://username:******@11.11.11.11:22/下载]JSCH->kex:client: hmac-md5,hmac-sha1,hmac-sha1-96,hma
如何阻止这些消息出现在日志中?如果您使用的是log4j之类的记录器,只需在记录器配置中使用以下行关闭JSCH日志:
log4j.logger.org.apache.camel.component.file.remote.SftpOperations = OFF
作为更改记录器配置的一种替代方法,当前的Camel提到了可以在端点上设置的几个选项:
- jschLoggingLevel
- readLockLoggingLevel
- 运行日志级别
sftp://user@myserver.mydomain.net:9921/path/to/folder?binary=true&jschLoggingLevel=WARN&readLockLoggingLevel=INFO&runLoggingLevel=WARN
您可以直接在端点中调整每个类别以满足您的需要,而无需更改