Re: logging for jsut an error
If you want a custom log, you need to use the XML logging and parse the XML log to extract only the information you are interested in.
https://winscp.net/eng/docs/logging_xml
https://winscp.net/eng/docs/logging_xml