Simplify logging

There is no need to manage the logger through a utility function.
Therefore, remove all that logic and just use the logging module
correctly.