mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
a6aa219895
* Reopen log files after receiving a SIGHUP signal Implements a system signals listener in log.FileLogWriter. After receiving a SIGHUP signal from the system, the listener will close the current log file and then open it again. The listener will finishes after receiving a SIGINT, SIGKILL or SIGTERM signal. Closes grafana/grafana#2497 * Move the SIGHUP handling to the main file
10 lines
107 B
Go
10 lines
107 B
Go
package log
|
|
|
|
type DisposableHandler interface {
|
|
Close()
|
|
}
|
|
|
|
type ReloadableHandler interface {
|
|
Reload()
|
|
}
|