def METHOD_NAME(self, level, msg, *args, **kwargs):
    loglevel = logging.DEBUG - level + 1
    if not bb.event.worker_pid:
        if self.name in bb.msg.loggerDefaultDomains and loglevel > (bb.msg.loggerDefaultDomains[self.name]):
            return
        if loglevel < bb.msg.loggerDefaultLogLevel:
            return
    return self.log(loglevel, msg, *args, **kwargs)