This project is read-only.

Logging/Feedback for all Send/Read events

Jun 28, 2011 at 9:08 AM

First of all, thank you for a really impressive FTPS library.

Now on to my query ;)

As with all gui FTP clients you have your event window to monitor all events sent/received.

I have used the library to setup the upload of single files via a basic a dropdown list on my C# ASP.Net solution. The files being uploaded are literally a few kb of data each time. On completion of an upload the FTPS server responds with a file tracking ID to confirm successful receipt of the upload however I don't appear to be able to get this event data.

I basically need to log EVERYTHING that happens on the FTP server but I can't seem to find anything within the library that could really give send/receive events to/from the server for me to log.

Is this un-supported at the moment? If so, are there plans to implement such features?

Thank you for your time and once again, thank you for taking time to develop/release this ;)

Kind regards,

Liam

Jun 28, 2011 at 11:39 AM

Hi,

logging is part of a (very) forthcoming release :-)

 

Cheers,

Alessandro Pilotti

[ MVP / IIS ]

Jul 1, 2011 at 8:42 PM

Hi,

logging support has been committed.

Testing would be appreciated ;-) 

 

Look for the following events: LogCommandEventHandler and LogServerReply in the FTPSClient class.

 

Cheers,

Alessandro Pilotti

[ MVP / IIS ]

Jul 1, 2011 at 11:13 PM

Awesome!

Downloaded and testing right now ;)

Regards,

Liam

Jul 1, 2011 at 11:55 PM

So far so good, Alex!

Seems to be working perfectly on the 10 tests I've chucked through it so far. Should probably look at hiding the 'password' sent through so its not stored in the log but thats definitely not a breaker.

Exciting stuff!

Heres a clip of a log I output:

01 July 2011 23:47:19 : 220 >> FileZilla Server version 0.9.39 beta
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : AUTH TLS
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : 234 >> Using authentication type TLS
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : USER eddie
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : 331 >> Password required for eddie
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : PASS <removed>
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : 230 >> Logged on
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : FEAT
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : 211 >> Features:
MDTM
REST STREAM
SIZE
MLST type*;size*;modify*;
MLSD
AUTH SSL
AUTH TLS
PROT
PBSZ
UTF8
CLNT
MFMT
End
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : CLNT AlexFTPS
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : 200 >> Don't care
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : OPTS UTF8 ON
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : 200 >> UTF8 mode enabled
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : TYPE I
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : 200 >> Type set to I
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : PASV
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : 227 >> Entering Passive Mode (5,96,212,189,239,86)
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : NLST
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : 150 >> Connection accepted
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : 226 >> Transfer OK
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : CWD Send
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : 250 >> CWD successful. "/Send" is current directory.
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : PASV
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : 227 >> Entering Passive Mode (5,96,212,189,239,87)
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : STOR LAH0ZHCX.TXT
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : 150 >> Connection accepted
- - - - - - - - - - - - - - - - - - - -
01 July 2011 23:47:19 : 226 >> Transfer OK
- - - - - - - - - - - - - - - - - - - -

Thanks for your work, it really is appreciated.

Back to testing...

Kind regards,

Liam