static variable to control logging