Enhanced logging capabilities are supported in all session-based components (=nearly all Rebex components except Rebex Time).
Steps to enable logging in Rebex components
- Add reference to
Rebex.Common.dll (if you are using version 2012 R1 or later) or
Rebex.Net.ProxySocket.dll (if you are using an older version).
- Add following code after each call to the Rebex component constructor. The "client" is an instance of Ftp, Sftp, Scp, Smtp, Imap, Pop3, Ssh or Telnet class.
// change the log path if needed
client.LogWriter = new Rebex.FileLogWriter(
''# change the log path if needed
client.LogWriter = new Rebex.FileLogWriter( _