- martin
Post a reply
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Topic review
- parksa
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="binary" -filemask="|*/" -- "C:\TEST\FTP\OUT\SSH\*.*" "/app01/Opalis/TEST_IN/"" 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>
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="binary" -filemask="|*/" -- "C:\TEST\FTP\OUT\SSH\*.*" "/app01/Opalis/TEST_IN/"" 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>