instantiate logging outside of class