plugeth/internal/debug
Felix Lange 5b4c149f97
internal/debug: add --log.file option (#26149)
This adds an option to direct log output to a file. This feature has been
requested a lot. It's sometimes useful to have this available when running
geth in an environment that doesn't easily allow redirecting the output.

Notably, there is no support for log rotation with this change. The --log.file option
opens the file once on startup and then keeps writing to the file handle. 
This can become an issue when external log rotation tools are involved, so it's
best not to use them with this option for now.
2022-11-11 11:33:18 +01:00
..
api.go all: replace strings.Replace with string.ReplaceAll (#24835) 2022-05-09 13:13:23 +03:00
flags.go internal/debug: add --log.file option (#26149) 2022-11-11 11:33:18 +01: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