Changed the logging system