Resolves #4 use UNIX signals to change the log level
min_duration is measured in ms