Topic "XML logging creates empty files"

Author Message
Krys

Guest


Hi,

I recently tried to activate logging into an XML format.

When I open the XML file generated this way, all I get is the following :

<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="https://winscp.net/schema/session/1.0" name="xxxxxx" start="2014-10-09T08:04:31.029Z">
</session>

whichever operations I make (downloads, uploads, directory creation...)

Logging in text format works correctly in the same saving directory and with the same naming convention.

Is there something else to configure to activate XML logging ?

Thanks for your help.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Are you using this from GUI or scripting?
Can you attach an XML and session log for the same session?
_________________
Martin Prikryl
Krys

Guest


prikryl wrote:
Are you using this from GUI or scripting?

I activated logging from GUI, don't know how to do from script (haven't searched that yet Confused )

prikryl wrote:
Can you attach an XML and session log for the same session?

Sure, but as this is from professionnal environment, I had to delete some data (server name, login info, folders and files names)
These are from a connection, moving to another folder, then downloading a file.

Thanks for your answer...
2014-10-09-173842.xml.txt (155 Bytes) [Download]

Description: XML log

2014-10-09-173842.txt (11.86 KB) [Download]

Description: Session log

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
OK, you use background transfers. These are indeed not recorded in the XML log. Actually XML logging is primarily intended for scripting (where there's no background transfers). Though as it's made available in the GUI too, it makes sense that it should log background transfers too. Will consider this.
Krys

Guest


Thanks, this would be a nice thing to add (though I don't know how difficult this would be).

Is there a way to make the session log more "user-friendly" ?
All I want is something like :
TimeStamp - Session start
TimeStamp - Open Directory ...
TimeStamp - Download File ...
TimeStamp - Success
TimeStamp - Upload File ...
TimeStamp - Failure
TimeStamp - Session End

I don't need the dir/ls or other info about transfert modes...

Thanks in advance.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
The session log is intended for a debugging, not for recording an user activity.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
I have documented the limitation:
https://winscp.net/eng/docs/logging_xml#purpose
Krys

Guest


Again, thanks for your answers.
I will see if there is a way - through scripting - to extract the data I wish for the session log.
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