INT-1655 added support for JSch Loging for SFTP adapter, updated documentation

This commit is contained in:
Oleg Zhurakousky
2010-12-01 16:06:00 -05:00
parent 41d64cdf6b
commit ee5b305260
4 changed files with 62 additions and 3 deletions

View File

@@ -157,4 +157,22 @@ xsi:schemaLocation="http://www.springframework.org/schema/integration/sftp
value that computes the <emphasis>file name</emphasis> based on its original name while also appending a suffix: '-foo'.
</para>
</section>
<section id="sftp-jsch-logging">
<title>SFTP/JSCH Logging</title>
<para>
Since we use JSch libraries (http://www.jcraft.com/jsch/) to provide SFTP support some times you may require
more information from the JSch API itself especially if something is not working properly
(e.g., Authentication exceptions etc.). Unfortunately JSch does not use commonly used logging facilities and instead
relies on the custom implementation of <classname>com.jcraft.jsch.Logger</classname> interface.
Since Spring Integration 2.0.1 we've implemented this interface, so now all you need to do to enable
JSch logging is to configure your logger the way you usually do. For example below is sample configuration of a
logger using Log4J.
<programlisting language="java"><![CDATA[log4j.category.com.jcraft.jsch=DEBUG]]></programlisting>
</para>
</section>
</chapter>