syncthing/cmd/syncthing
Jakob Borg f9c380d45b
cmd/syncthing: Implement log rotation (fixes #6104) (#6198)
Since we've taken upon ourselves to create a log file by default on
Windows, this adds proper management of that log file. There are two new
options:

  -log-max-old-files="3"    Number of old files to keep (zero to keep only current).
  -log-max-size="10485760"  Maximum size of any file (zero to disable log rotation).

The default values result in four files (syncthing.log, synchting.0.log,
..., syncthing.3.log) each up to 10 MiB in size. To not use log rotation
at all, the user can say --log-max-size=0.
2019-11-28 12:26:14 +01:00
..
.gitignore Repair model tests 2014-03-30 21:59:40 +02:00
.stfolder Merge remote-tracking branch 'syncthing/pr/1577' 2015-04-06 20:53:32 +02:00
blockprof.go all: Remove potentially problematic errors from panics (fixes #5839) (#5912) 2019-07-31 10:53:35 +02:00
crash_reporting_test.go lib/ur: Implement crash (panic) reporting (fixes #959) (#5702) 2019-06-11 08:19:11 +02:00
crash_reporting.go lib/ur: Implement crash (panic) reporting (fixes #959) (#5702) 2019-06-11 08:19:11 +02:00
debug.go all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
heapprof.go all: Remove potentially problematic errors from panics (fixes #5839) (#5912) 2019-07-31 10:53:35 +02:00
main.go cmd/syncthing: Implement log rotation (fixes #6104) (#6198) 2019-11-28 12:26:14 +01:00
monitor_test.go cmd/syncthing: Implement log rotation (fixes #6104) (#6198) 2019-11-28 12:26:14 +01:00
monitor.go cmd/syncthing: Implement log rotation (fixes #6104) (#6198) 2019-11-28 12:26:14 +01:00
openurl_unix.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
openurl_windows.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
perfstats_unix.go all: Fix some linter errors (#5499) 2019-02-02 10:11:42 +01:00
traceback.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
usage.go all: Revert the underscore sillyness 2019-02-02 12:16:27 +01:00