Byte logging for VB.NET Assembly

Advertisement

parksa
Joined:
Posts:
2
Location:
asppost

Byte logging for VB.NET Assembly

I need to log the Byte counts per file but I do not see the ability using the TransferEventArgs.

transferResult.Check()

' Print results
Dim transfer As TransferEventArgs
For Each transfer In transferResult.Transfers
Console.WriteLine("Upload of {0} succeeded", transfer.FileName)
f.Writeline(current_date & "_" & current_time & " Upload of " & transfer.FileName & " TO " & transfer.Destination & " succeeded ")
Next

I also attempted to make use of session.XmlLogPath = LOG_PATH & file_Name & ".XML" as an alternative but Bytes where not part of the Tags.

<group name="put -nopermissions -nopreservetime -transfer=&quot;binary&quot; -filemask=&quot;|*/&quot; -- &quot;C:\TEST\FTP\OUT\SSH\*.*&quot; &quot;/app01/Opalis/TEST_IN/&quot;" start="2014-03-11T16:53:04.951Z">
<upload>
<filename value="C:\TEST\FTP\OUT\SSH\SSH_OUT.txt3" />
<destination value="/app01/Opalis/TEST_IN/SSH_OUT.txt3" />
<result success="true" />
</upload>
</group>

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum