Adds logging capability