Removed unnecessary pointers in logging module.
Deconstructor of Logging is now also properly called.