add enable/disable logging