commandline » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
| 2026-01-15 | 2026-01-15 | ||
| 1 (146.70.117.28) (hidden) (untrusted) | Restored revision 1743429703. Undoing revision 1768475262. (martin) (hidden) | ||
| Line 95: | Line 95: | ||
| winscp.exe ftps://martin:password@example.com/ | winscp.exe ftps://martin:password@example.com/ | ||
| </code> | </code> | ||
| - | |||
| ==== [[logging]] Logging ==== | ==== [[logging]] Logging ==== | ||
| - | With &#039;&#039;/log&#039;&#039; parameter you may turn on [[logging|session logging]] to file specified by [[local_path|local path]]. In the path you can use the same patterns as in the [[ui_pref_logging#session_log|logging preferences]]. | + | With ''/log'' parameter you may turn on [[logging|session logging]] to file specified by [[local_path|local path]]. In the path you can use the same patterns as in the [[ui_pref_logging#session_log|logging preferences]]. |
| - | Use parameter &#039;&#039;/==loglevel==&#039;&#039; to change logging level. The value can be in range &#039;&#039;-1&#039;&#039;...&#039;&#039;2&#039;&#039; (for //Reduced//, //Normal//, //Debug 1// and //Debug 2// logging levels respectively). Append additional &#039;&#039;*&#039;&#039; to enable password logging (e.g. &#039;&#039;/loglevel=2*&#039;&#039;).((Append &#039;&#039;*-&#039;&#039; to disable password logging.)) | + | Use parameter ''/==loglevel=='' to change logging level. The value can be in range ''-1''...''2'' (for //Reduced//, //Normal//, //Debug 1// and //Debug 2// logging levels respectively). Append additional ''*'' to enable password logging (e.g. ''/loglevel=2*'').((Append ''*-'' to disable password logging.)) |
| - | Use parameter &#039;&#039;/==logsize==&#039;&#039; to configure log file size limit and log file rotation. Specify maximum size in bytes, optionally with &#039;&#039;K&#039;&#039;, &#039;&#039;M&#039;&#039; or &#039;&#039;G&#039;&#039; units. Optionally you can limit number of archived log files using &#039;&#039;count*&#039;&#039; prefix. For example &#039;&#039;/logsize=5*10M&#039;&#039; will limit log file size to 10 MB and will allow up to 5 archived logs. | + | Use parameter ''/==logsize=='' to configure log file size limit and log file rotation. Specify maximum size in bytes, optionally with ''K'', ''M'' or ''G'' units. Optionally you can limit number of archived log files using ''count*'' prefix. For example ''/logsize=5*10M'' will limit log file size to 10 MB and will allow up to 5 archived logs. |
| - | &lt;code batch&gt; | + | <code batch> |
| - | winscp.exe sftp://martin@example.com/ /log=&quot;C:\winscp.log&quot; /loglevel=0 | + | winscp.exe sftp://martin@example.com/ /log="C:\winscp.log" /loglevel=0 |
| - | &lt;/code&gt; | + | </code> |
| - | With &#039;&#039;/xmllog&#039;&#039; 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 &#039;&#039;/log&#039;&#039; parameter with filename ending with &#039;&#039;.xml&#039;&#039; extension.)) In the path you can use the same patterns as in the [[ui_pref_logging#session_log|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 the path you can use the same patterns as in the [[ui_pref_logging#session_log|logging preferences]]. |
| - | Use parameter &#039;&#039;/xmlgroups&#039;&#039; along with &#039;&#039;/xmllog&#039;&#039;, to [[logging_xml#group|group]] all XML log elements belonging to the same command under parent &#039;&#039;group&#039;&#039; 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. |