Added logging to the rest of the application except for the tests.