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.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

navilor

Re: Error Logging

martin wrote:

If you use XML logging, it should be fairly easy to filter out the errors (e.g. using XSLT).


Thank you. I will look into XML logging and research XSLT.
martin

Re: Error Logging

If you use XML logging, it should be fairly easy to filter out the errors (e.g. using XSLT).
navilor

System Information

I apologize for not including this above:

Version: WinSCP 4.1.9
Platform: Windows Vista Ultimate 64bit
Transfer protocol: SCP
Method: scripting/automation

Command line:
winscp.com /script="winscpbatchfile.txt" /log=C:\Users\Kevin\Desktop\Utils\freenas.out.log


Contents of script file:
winscpbatchfile.txt
========================================
option batch continue

option transfer
option confirm off
option exclude "$Recycle.Bin; System Volume Information;*.tmp; UsrClass.dat*; ntuser.dat*"

lcd F:
open username:password@192.168.1.4
cd /mnt/share/kevin/emulation
synchronize remote -mirror -delete -nopreservetime

lcd G:
# open username:password@192.168.1.4
cd /mnt/share/kevin/games
synchronize remote -mirror -delete -nopreservetime

lcd c:\graphics
# open username:password@192.168.1.4
cd /mnt/share/kevin/graphics
synchronize remote -mirror -delete -nopreservetime

lcd h:
# open username:password@192.168.1.4
cd /mnt/share/kevin/misc
synchronize remote -mirror -delete -nopreservetime

lcd c:\users\Kevin
# open username:password@192.168.1.4
cd /mnt/share/kevin/users/kevin
synchronize remote -mirror -delete -nopreservetime

exit
navilor

Error Logging

First of all, thank you for the wonderful program you have written. I have been using it for years. My massive amount of data has required me to build a FreeNAS box and I now need to perform automation.

I know that I am missing something obvious. Here is my question.

How do I limit logging to only capture errors? Can I do log splitting and have successful results land in one log file and errors land in a different one? (e.g. error.log, success.log)

I have checked your sections on Session Logging, Command-line Options and your Documentation forum (<invalid hyperlink removed by admin>) to no avail.

Will you please direct me to the proper documentation that I am missing?