Get the object logger or its parent’s one
obj – A pyleecan object
logger – Pyleecan object dedicated logger
logging.Logger