changed how logging works to not assume logging is being used
merged with prior refactoring