Topic "Disable Xml log to file in c#"

Author Message
shaancool
[View user's profile]

Joined: 2012-06-25
Posts: 1
Location: IN
Is it possible to Disable "Xml log to file" programatically in c#, if so please guide me on the same (http://winscp.net/eng/docs/ui_pref_logging) I searched a lot but couldn't find any solution.
Thanks in advance :)
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
No. Disable it in the GUI, before using the scripting interface.
Also, if you are using WinSCP from C#, you should better use WinSCP .NET assembly:
http://winscp.net/eng/docs/library
_________________
Martin Prikryl
David Peters

Guest


Hi, I'd like to chime in on this topic. It would be very helpful to be able to disable the XML log from the .NET library.

My process goes through about 300000 files, uploading each. During testing I found that my program got slower and slower... via Visual Studio profiler and ILSpy I saw that most of the program's time was spent parsing the ever-growing XML file.

My solution is going to be to periodically dispose of my Session but this is obviously not the ideal approach. Thanks for your work on this very useful library, and I hope you consider this suggestion.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
David Peters wrote:
Hi, I'd like to chime in on this topic. It would be very helpful to be able to disable the XML log from the .NET library.

My process goes through about 300000 files, uploading each. During testing I found that my program got slower and slower... via Visual Studio profiler and ILSpy I saw that most of the program's time was spent parsing the ever-growing XML file.

My solution is going to be to periodically dispose of my Session but this is obviously not the ideal approach. Thanks for your work on this very useful library, and I hope you consider this suggestion.

Thanks for your feedback. I cannot "disable the XML log from the .NET library" as the XML log is a way WinSCP communicates back to the assembly. Though I understand your issue and will try to optimize WinSCP for this.
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
prikryl wrote:
Thanks for your feedback. I cannot "disable the XML log from the .NET library" as the XML log is a way WinSCP communicates back to the assembly. Though I understand your issue and will try to optimize WinSCP for this.

This issue has been added to the tracker:
http://winscp.net/tracker/show_bug.cgi?id=1287

If you want to test it, please contact me.
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