Altered bot logging to provide the option to log a different level to the logfile.