Differences

This shows you the differences between the selected revisions of the page.

2015-02-18 2015-02-18
5.7 Logging parsed command-line and script command parameters on Debug 1 level. (martin) moving session logging-only example closer to its description (martin)
Line 68: Line 68:
Use parameter ''/loglevel'' to change logging level. The value can be in range ''0''..''2'' (for //Normal//, //Debug 1// and //Debug 2// logging levels respectively). Append additional ''*'' to enable password logging (e.g. ''/loglevel=2*''). &recent_feature(5.7) Use parameter ''/loglevel'' to change logging level. The value can be in range ''0''..''2'' (for //Normal//, //Debug 1// and //Debug 2// logging levels respectively). Append additional ''*'' to enable password logging (e.g. ''/loglevel=2*''). &recent_feature(5.7)
 +
 +<code batch>
 +winscp.exe sftp://martin@example.com/ /log="C:\winscp.log" /loglevel=0
 +</code>
With ''/xmllog'' parameter you may turn on [[logging_xml|XML logging]] to file specified by local path. ((For backward compatibility, XML logging can also be enabled using ''/log'' parameter with filename ending with ''.xml'' extension.)) In either path you can use the same patterns as in the [[ui_pref_logging|logging preferences]]. With ''/xmllog'' parameter you may turn on [[logging_xml|XML logging]] to file specified by local path. ((For backward compatibility, XML logging can also be enabled using ''/log'' parameter with filename ending with ''.xml'' extension.)) In either path you can use the same patterns as in the [[ui_pref_logging|logging preferences]].
Line 73: Line 77:
Use parameter ''/xmlgroups'' along with ''/xmllog'', to [[logging_xml#group|group]] all XML log elements belonging to the same command under parent ''group'' element. Use parameter ''/xmlgroups'' along with ''/xmllog'', to [[logging_xml#group|group]] all XML log elements belonging to the same command under parent ''group'' element.
-<code batch> 
-winscp.exe sftp://martin@example.com/ /log="C:\winscp.log" /loglevel=0 
-</code> 
==== [[scripting]] Console/scripting mode ==== ==== [[scripting]] Console/scripting mode ====

Last modified: by martin