Added the ability to customise log format and dateformat in the config file