0

Implement sighandler, logfile can be not only stderr

* Implement sighandler for int, quit, term signals
* Implement log reopen on sighup
* Catch http.Server's error log
* Implement logfile setting in config
This commit is contained in:
eleksir
2025-11-10 21:53:34 +03:00
parent 79d9a2f604
commit 03a623b207
10 changed files with 257 additions and 30 deletions

View File

@@ -9,4 +9,7 @@ port = 9980
timeout = 5
; loglevel - info or debug, info is what you want
loglevel = debug
loglevel = info
; logfile - log to this file, default stderr
;logfile = /var/log/joyproxy.log