Would a patch adding a command line switch to Syncthing directing the events stream to stderr be accepted? Something like “syncthing -audit=stderr”? Originally I was going to suggest this because I had been concerned that a polling model wouldn’t be responsive enough for something like a flashing “light” on the tray icon when directories are polled. However I see that doing a get on /rest/events?since=<last#> will block until there is another event, so responsiveness wise it seems like it’ll be ok. That being said, it would really be far simpler, be more responsive still, and use fewer system resources just to do a nice old fashioned select on stderr.
I’ve toyed with just using the audit file itself, which works very well indeed, but then it either grows ad infinitum, or I’m stopping and starting Syncthing just to roll it over.