Set up the logfile and possible signal handler.
Installs the signal handler for SIGUSR1 to make the process re-open
the log file.
Parameters | logfilepath | The path to the logfile. If None, stdout is used
for logging and no signal handler will be installed. |