XML logging creates empty files

Advertisement

Krys
Guest

XML logging creates empty files

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: XML logging creates empty files

Are you using this from GUI or scripting?
Can you attach an XML and session log for the same session?

Reply with quote

Krys
Guest

Re: XML logging creates empty files

martin 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 :? )

martin 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...
Description: XML log
Description: Session log

Reply with quote

martin
Site Admin
martin avatar

Re: XML logging creates empty files

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.

Reply with quote

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.

Reply with quote

Advertisement

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.

Reply with quote

Advertisement

You can post new topics in this forum