Do `isinstance(logName, basestring)` and not explicitly test against str