(name=None)
return Logger.manager.getLogger(name)
Return a logger with the specified name, creating it if necessary.

    If no name is specified, return the root logger.
Return a logger with the specified name, creating it if necessary.
Return a logger with the specified name creating it if necessary .
def getLogger(name=None):
    """
    Return a logger with the specified name, creating it if necessary.

    If no name is specified, return the root logger.
    """
    if not name or isinstance(name, str) and name == root.name:
        return root
    return Logger.manager.getLogger(name)
def getLogger ( name = None ) : if not name or isinstance ( name , str ) and name == root . name : return root return Logger . manager . getLogger ( name )