syncthing: directing log output to a file or logging utility

Hello, thanks for building syncthing. I’ve been playing around with it recently for a project. A beginner question: upon starting it from the command line, syncthing prints a bunch of output to the CLI.

  1. Is there a way to (temporarily) quiet this output?
  2. More permanently, is there a syncthing API to direct this output to a log file, or later on to some logging utility run by a cloud provider to monitor my syncthing instances? How do folks usually accomplish this with syncthing?

Thank you in advance for your help!

You can pipe the output to /dev/null, a file, or a logging utility. This often happens automatically, for example when run by systemd.

Got it, thank you!