Stopped log colours and duplicate messages being written to the log file