Fix: logger_class can be unassigned.