SessionLogPath and rotating files
Hi,
I would like to set the
Based on this documentation, https://winscp.net/eng/docs/ui_pref_logging, one can set up the session log file as well as the file rotating parameters, but that's done in the WinScp UI.
How do I set the same for the WinSCP .NET component? Should I do it through the raw config settings under logging: https://winscp.net/eng/docs/rawconfig?
Setting something like: doesn't work as expected, in the sense that the WinSCP component does not replace the placeholders with the actual values. A file with that exact name is created instead.
re: log level, there is
re: log ration and max size and the others, if I set does the WinSCP component look at that file and it will split it if necessary? If I decide to use I assume it is going to split this one?
Thank you!
I would like to set the
SessionLogPath
occasionally in case I experience issues, and I was wondering about configuring the rotation for the files, as well as the placeholders that can be part of the file name.
Based on this documentation, https://winscp.net/eng/docs/ui_pref_logging, one can set up the session log file as well as the file rotating parameters, but that's done in the WinScp UI.
How do I set the same for the WinSCP .NET component? Should I do it through the raw config settings under logging: https://winscp.net/eng/docs/rawconfig?
Setting something like:
session.SessionLogPath = "!S_!Y!M!D_!T.txt";
re: log level, there is
DebugLogLevel
and there is the raw config under Logging\LogProtocol
. Which one takes precedence?
re: log ration and max size and the others, if I set
session.SessionLogPath = "session_log_SomeSite.txt";
session.SessionLogPath = "session_log_SomeOtherSite.txt";
Thank you!