tidied by perltidy
properly log to log file when the config item quiet is set to true