Implement disableLog and enableLog methods