Topic "How can I separate normal log info and Exception log info"

Author Message
presentlee
[View user's profile]

Joined: 2014-09-30
Posts: 2
Location: China
How can I use script to separate normal log information and Exception log information?

I write following command into a bat file(windows):

winscp /script=qwer.txt /log=log4qwer.txt /xmllog=log4qwer.xml

After running this bat, I can get a log file named log4qwer.txt, but in this file, I can see very detail log information. But sometimes I just care about , are there any Exception during the running of the FTP client?

Can I use some paramter in the bat file or script file to separate normal log information and Exception log information, or output the Exception log information to a specified path alone?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
You can parse the exception out of XML log. Or simply, just check WinSCP exit code.
See https://winscp.net/eng/docs/guide_automation#results
_________________
Martin Prikryl
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