add Exception class and modify Logging class