Fix: logger_class can be undefined.
Merge pull request #741 from ifduyue/logger_class_bug

Fix: logger_class can be undefined.