Changed the logging interface and added a new logging class.