#5; add better control for global logging state