Please add a switch to allow user to turn off the logging and set its default value to off.