Customizing the logging process