added --log-level option and USR1 and USR2 signals to update log level on the fly