Adds logging feature