Fix: logger_class can be undefined.

If ``uri`` is ``simple``, then ``logger_class`` is undefined. 
Returning ``logger_class`` at this circumstance leads to exception.