def initLogger(obj):
 if inspect.isclass(obj):
  myClass = obj
 else:
  myClass = obj.__class__
 logger = logging.getLogger('.'.join(['com.numenta', myClass.__module__, myClass.__name__]))
 return logger

def initLogger ( obj ) : if inspect . isclass ( obj ) : myClass = obj else : myClass = obj . __class__ logger = logging . getLogger ( '.' . join ( [ 'com.numenta' , myClass . __module__ , myClass . __name__ ] ) ) return logger
helper function to create a logger object for the current object with the standard numenta prefix .