Adds logging to all the classes