plugeth/internal/debug
sudeep 7076ae00aa
cmd/geth: enable log rotation (#26843)
This change enables log rotation, which can be activated using the flag --log.rotate. Additional parameters that can be given are: 

  - log.maxsize to set maximum size before files are rotated,
  - log.maxbackups to set how many files are retailed, 
  - log.maxage to configure max age of rotated files, 
  - log.compress whether to compress rotated files

The way to configure location of the logfile(s) is left unchanged, via the `log.logfile` parameter.  

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-04-03 05:05:36 -04:00
..
api.go all: replace strings.Replace with string.ReplaceAll (#24835) 2022-05-09 13:13:23 +03:00
flags.go cmd/geth: enable log rotation (#26843) 2023-04-03 05:05:36 -04:00
loudpanic_fallback.go all: add go:build lines (#23468) 2021-08-25 18:46:29 +02:00
loudpanic.go all: add go:build lines (#23468) 2021-08-25 18:46:29 +02:00
trace_fallback.go all: add go:build lines (#23468) 2021-08-25 18:46:29 +02:00
trace.go all: add go:build lines (#23468) 2021-08-25 18:46:29 +02:00