Is it possible to create a detailed log of communication between client (component) and the server? It would help us detect problem sources. The log should include:

  • Commands sent by client
  • Responses received from server
  • Description of activities

asked 12 Jan '10, 19:34

Rebex%20KB's gravatar image

Rebex KB ♦♦
256312
accept rate: 78%

edited 16 Apr '10, 15:03

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.2k18


Enhanced logging capabilities are supported in all session-based components (=nearly all Rebex components except Rebex Time).

Steps to enable logging in Rebex components

  1. Add reference to Rebex.Net.ProxySocket.dll
  2. 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.

C#

// change the log path if needed
client.LogWriter = new Rebex.FileLogWriter(
    @"c:\temp\log.txt", 
    Rebex.LogLevel.Debug); 

VB.NET

''# change the log path if needed
client.LogWriter = new Rebex.FileLogWriter( _
    "c:\temp\log.txt", _
    Rebex.LogLevel.Debug) 
link

answered 12 Jan '10, 19:36

Rebex%20KB's gravatar image

Rebex KB ♦♦
256312
accept rate: 78%

edited 30 Mar '10, 10:03

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×136
×115
×71
×33

Asked: 12 Jan '10, 19:34

Seen: 647 times

Last updated: 16 Apr '10, 15:03