disable logging manually (restore original method)