I would like to know few options available in .Net Assembly for WinSCP

Advertisement

Loozer
Joined:
Posts:
1
Location:
India

I would like to know few options available in .Net Assembly for WinSCP

1. What is the use of
Session.AddRawConfiguration
?
2. I made the following settings but didn't worked
session.AddRawConfiguration(@"Configuration\Logging\LogFileName", @"D:\Test Log\wscp.log");
session.AddRawConfiguration(@"Configuration\Logging\LogMaxSize", "150000");
session.AddRawConfiguration(@"Configuration\Logging\LogMaxCount", "2");
session.AddRawConfiguration(@"Configuration\Logging\Logging", "0");
session.AddRawConfiguration(@"Configuration\Logging\LogFileAppend", "0");
session.AddRawConfiguration(@"Configuration\Logging\LogSensitive", "0");
session.AddRawConfiguration(@"Configuration\Logging\LogProtocol", "0");
session.AddRawConfiguration(@"Configuration\Logging\LogActions", "0");
session.AddRawConfiguration(@"Configuration\Logging\ActionsLogFileName", @"D:\Test Log\wscpxml.log");
3. What is the use of
session.XmlLogPreserve
and
session.XmlLogPath
options?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,551
Location:
Prague, Czechia

Re: I would like to know few options available in .Net Assembly for WinSCP

The Configuration\ part should not be there.
See https://winscp.net/eng/docs/rawconfig#logging_logfileappend

See also https://winscp.net/eng/docs/library_session_addrawconfiguration

XmlLogPath and XmlLogPreserve are useful only if you want to use WinSCP XML log for our own purposes (in addition to its internal use by WinSCP .NET assembly).
https://winscp.net/eng/docs/logging_xml

Reply with quote

Advertisement

You can post new topics in this forum