Programmatic way to reset log files?

I’m wondering, short of executing rm /path/to/{syncthing_conf_dir}/*.log is there a way to clear the logfile via the CLI or API?

If the rm... method is used, do I need to stop or pause the running Syncthing instance first?

ST 1.27.2 / macOS

Syncthing doesn’t put a log file there by default on macOS… Our suggested launchd configs uses a file in ~/Library/Logs/Syncthing.log, which can be rm:d if necessary.

Ok, thanks. I use the syncthing-macos bundle, which puts the logs at ~/Library/Application Support/Syncthing/

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.