Error Logging

Advertisement

navilor
Joined:
Posts:
10

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?

Reply with quote

Advertisement

navilor
Joined:
Posts:
10

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

Reply with quote

navilor
Joined:
Posts:
10

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.

Reply with quote

Advertisement

You can post new topics in this forum