Topic "Error Logging"

Author Message
navilor
[View user's profile]

Joined: 2009-11-01
Posts: 10
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?
Advertisements
navilor
[View user's profile]

Joined: 2009-11-01
Posts: 10
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:
Code:
winscp.com /script="winscpbatchfile.txt" /log=C:\Users\Kevin\Desktop\Utils\freenas.out.log


Contents of script file:
winscpbatchfile.txt
========================================
Code:
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
If you use XML logging, it should be fairly easy to filter out the errors (e.g. using XSLT).
_________________
Martin Prikryl
navilor
[View user's profile]

Joined: 2009-11-01
Posts: 10
prikryl 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.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License