isEnabledFor

lsst.log.isEnabledFor(logger, level)