Refactored logging to make use of a singleton service class called Loggi...

...ngService.