Made loggers static where possible

Made the loggers static where possible. This prevents creating new logger instances every time a class is initialized. And makes code also more consistent since everywhere it is done in the same way.