Loading

How to enable DEBUG logging for APACHE MINA LIBRARY used in SFTP 2.0.0 and Later

Data pubblicazione: Mar 2, 2024
Fasi

DESCRIPTION:

As per the SFTP connector release notes - Link 

  • SFTP Connector 2.0.0 no longer supports the jcraft JSCH library. The connector now uses the Apache Mina SSHD library.
To enable the verbose logging for SFTP connector we should now use the package related to Apache Mina library.

STEPS TO FOLLOW:

Please follow the below steps to enable the verbose logging for SFTP Connector 2.0.0 and Later.

1- To enable the debug logs in your mule application in On-Premise use the below packages.
 
<AsyncLogger name="org.mule.extension.sftp" level="DEBUG"/>
<AsyncLogger name="org.apache.sshd" level="DEBUG"/>

2- In case of Anypoint Studio you'll need to modify the file "log4j2.xml" located in src/main/resources and add the entries mentioned above between the <Loggers> xml tags.

    It would look similar to:
 
<Loggers>
<AsyncLogger name="org.mule.extension.sftp" level="DEBUG"/>
<AsyncLogger name="org.apache.sshd" level="DEBUG"/>
</Loggers>

3- To enable the debug logs in your mule application in Cloudhub use the below packages.

     Access the mule application settings section and in the logging tab add the following packages:
 
org.mule.extension.sftp
org.apache.sshd

     Both with level "DEBUG".

Note- Please avoid using the below package for the latest SFTP 2.x.x connectors
<AsyncLogger name="com.jcraft" level="DEBUG"/>
Numero articolo Knowledge

001114297

 
Caricamento
Salesforce Help | Article