Preparing the code for the logging mechanism