Added periodic checking of changes in the loglevel