Added function for configuring logging