def get_logger(name, level=None):
    """ Return a setup logger for the given name

    :param name: The name for the logger. It is advised to use __name__. The logger name will be prepended by \"jb.\".
    :type name: str
    :param level: the logging level, e.g. logging.DEBUG, logging.INFO etc
    :type level: int
    :returns: Logger
    :rtype: logging.Logger
    :raises: None

    The logger default level is defined in the constants :data:`jukeboxcore.constants.DEFAULT_LOGGING_LEVEL` but can be overwritten by the environment variable \"JUKEBOX_LOG_LEVEL\"

    """
    log = logging.getLogger("jb.%s" % name)
    if level is not None:
        log.setLevel(level)
    return log
def get_logger ( name , level = None ) : log = logging . getLogger ( "jb.%s" % name ) if level is not None : log . setLevel ( level ) return log
Return a setup logger for the given name

    :param name: The name for the logger. It is advised to use __name__. The logger name will be prepended by \"jb.\".
    :type name: str
    :param level: the logging level, e.g. logging.DEBUG, logging.INFO etc
    :type level: int
    :returns: Logger
    :rtype: logging.Logger
    :raises: None

    The logger default level is defined in the constants :data:`jukeboxcore.constants.DEFAULT_LOGGING_LEVEL` but can be overwritten by the environment variable \"JUKEBOX_LOG_LEVEL\"