logger can be turned on and off