Logging Exception restructure