Re: Impossible to set loglevel for synchronize job
See also https://winscp.net/tracker/1637
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
That's what I mean by "debugging".
You can use XSLT or similar method to convert the XML log to any format that suits you
You have a very very specific idea about a verbosity of details you want. And every other user will have a different idea
Had the rm failed (like if you provided a path to non-existing folder), you would see an failure tag. If you want to get failure tag even on no-match, use option failonnomatch
there's no indication in the documentation that session logging is just for debugging, it explicitly states it's useful for connection problems AND debugging:
https://winscp.net/eng/docs/logging
"Session log: Events are logged in unstructured form with configurable level of verbosity. Information logged differ with protocol used. This format is useful to troubleshoot problems with connection. You should also include this log when reporting bugs or asking for support."
i have looked into the xml logging feature which you kindly pointed me towards, and whilst i can see that has great potential for some kinds of tasks (e.g. a remote system communicating with WinSCP to directly query the results of a task), it is not very readable for tech staff simply wishing to open a logfile on the local system and check the results,
it always generates individual files for each action (again harder to manage / read), and also it does not always give details of every action attempted (e.g. in the specific case of the "rm" command I exampled above, with xmlgouping disabled i found that command did not even get reported in the logs when no files matching were found,a nd with xmlgrouping enabled it was listed but not reported as either a failure or success)
rm
with a mask that does not match anything is a success, indicated by an absence of error. Had the rm
failed (like if you provided a path to non-existing folder), you would see an failure
tag. If you want to get failure
tag even on no-match, use option failonnomatch on
:
WinSCP session log file is intended for debugging purposes and for nothing else.
I think there's a real issue here that - whilst it's an enhancement request, not really a bug - should be addressed. Put simply, the log file generated by WinSCP (at loglevel=0), for some purposes (e.g. simple monitoring of whether a historical operation succeeded or otherwise) is too verbose to be usable when running repeatedly as a scheduled task, and including operations which include things like file synchronisation: and I do NOT agree with the statement that removing some of this verbosity would make it "useless".
Without all these details, the log file is useless for debugging.
Why do you have 3 differents settings for log details : Normal / Debug 1 / Debug 2, if log file created have allways the same size ? In older version of Winscp, this feature works correctly.
No, it was not working correctly. Previously the Normal level log file with FTP protocol did not provide enough information even for a trivial debugging.
Why do you have 3 differents settings for log details : Normal / Debug 1 / Debug 2, if log file created have allways the same size ? In older version of Winscp, this feature works correctly.
I'm sorry that you have problems with sites of the log.
But it's as it is. The log includes necessary information to debug problems with synchronization. Without all these details, the log file is useless for debugging.