To best support logrotate, it would be nice to have a signal that the toolbox/log.c will eat to close/reopen the logfile. Looking around, it seems like there's different semantics between HUP and USR1, so I'm not sure what we want by default. (hup seems to imply "reload configuration", which is difficult for us to do today).
The other thing to think about for the future is how we'd like to treat logging for external programs that import lstore as a shared library. In the short term, for this ticket, we probably want to export:
A function that an application could call when they wanted to rotate logs
A function an application could call to tell lstore to set itself up in a particular signal handler
A configuration option to handle the default (add signal handler or not)
To best support logrotate, it would be nice to have a signal that the toolbox/log.c will eat to close/reopen the logfile. Looking around, it seems like there's different semantics between
HUP
andUSR1
, so I'm not sure what we want by default. (hup seems to imply "reload configuration", which is difficult for us to do today).The other thing to think about for the future is how we'd like to treat logging for external programs that import lstore as a shared library. In the short term, for this ticket, we probably want to export: