Get raw log - WeOnlyDo Discussion board

Get raw log (General questions)

by stevep, Tuesday, November 20, 2007, 14:50 (6216 days ago)

How do I retrieve the raw status log from the component in blocking mode? In other words, I want to save the raw request/response text from the remote server as future evidence of what happened during this transfer. Is there any way to get this information?

Re: Get raw log

by woddrazen, Tuesday, November 20, 2007, 15:22 (6216 days ago) @ stevep

Hi Steve,


Maybe FtpReply form FtpReply Event will help you.

Here is example how to add it to your code:
[code]
Private Sub Ftp1_FTPReply(ByVal Command As String, ByVal ReplyCode As Integer, ByVal ReplyText As String)
Debug.Print Command & & ReplyText
End Sub
[/code]

More help for FtpReply Event you can find here:
http://www.weonlydo.com/FtpDLX/Help/wodFtpDLXLib~wodFtpDLX~FTPReply_EV.html

Hope this helps.


Regards,
Drazen

Re: Get raw log

by stevep, Tuesday, November 20, 2007, 20:05 (6216 days ago) @ woddrazen

I tried by that event never fires, probably because I'm in blocking mode. Do I have to switch out of blocking mode to get this to work? I'd rather not change since it's purely a console-mode app and already tested. I just want to get the results log.

Re: Get raw log

by wodDamir, Tuesday, November 20, 2007, 20:14 (6216 days ago) @ stevep

Hi Steve,

No, it doesn't matter if you are in blocking mode or not, the Event still has to be triggered.

However, what protocol are you using? FTPReply Event doesn't get triggered only when SFTP is used, since all the data in that case is encrypted and thus not available.

Regards,
Damba

Re: Get raw log

by stevep, Tuesday, November 20, 2007, 20:55 (6216 days ago) @ wodDamir

Yes I'm using SFTP

Surely there must be some response data available, otherwise you wouldn't know what statuses to give on the transfer.

Re: Get raw log

by wodSupport, Tuesday, November 20, 2007, 21:00 (6216 days ago) @ stevep

Steve,

in that case I would suggest you check Done event or LastError property - there's no more logging available than result code provided there, and that's all we can offer.

In SFTP protocol there's nothign else human readable to be seen.

Kreso