Fix: logger_class can be undefined.

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