Persist log files for debugging

This has come up again as WhiteNoise asked for sync logs in Obsidian Sync repeatedly restoring deleted files - #4 by WhiteNoise, but they are not persistent so can not be provided.

It’s pretty important that an application have good logging for troubleshooting and in my world (sysadmin and support) you NEVER have any applications without it. I’d like to add to this request that sync logs should be included.
If we were following standard coding practices in Linux you would have a single log where things like sync history and application debug information would be written, though some applications will employ multiple log files for different things. It doesn’t need to be extravagant and could just log to a file in .obsidian , or it could store to the OS appropriate locations. In mac that is ~/Library/Logs, /Library/Logs, or /var/log while in Linux it would most likely be in /var/log… not sure about Windows… Windows has always been less stable for good reason. Good practices are not followed there… that’s why the world runs on Linux behind the scenes.