Changing logging from a module constructor to a static method.