Adds logging support