Fix: logger_class can be undefined.