Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartWatcher ¶
StartWatcher starts goroutine listening for 'SIGHUP' signals. When it gets SIGHUP, it will call sigHandler, if sigHandler returns true - files will be reopened, else - goroutine will waiting for next signal. Func errHandler will be called for each error when opening files. sigHandler and errHandler can be nil.
Types ¶
type File ¶
File wraps an *os.File and listens for a 'SIGHUP' signal from logrotated so it can reopen the new file.
func (*File) Close ¶
Close unregisters file for SIGHUP-watcher and then close the underlying os.File.
Click to show internal directories.
Click to hide internal directories.