Break logging utils out to a module