Moved logging utils to their own module