async def has_log_callback(self, name):
    'Returns ``True`` if the app has a log callback, ``False`` otherwise.\n\n        Used to prevent callback loops. In the calling logic, if this function returns\n        ``True`` the resulting logging event will be suppressed.\n\n        Args:\n            name (str): Name of the app.\n\n        '
    has_log_callback = False
    if (name == 'AppDaemon._stream'):
        has_log_callback = True
    else:
        async with self.AD.callbacks.callbacks_lock:
            for callback in self.AD.callbacks.callbacks:
                for _uuid in self.AD.callbacks.callbacks[callback]:
                    cb = self.AD.callbacks.callbacks[callback][_uuid]
                    if ((cb['name'] == name) and (cb['type'] == 'event') and (cb['event'] == '__AD_LOG_EVENT')):
                        has_log_callback = True
                    elif ((cb['name'] == name) and (cb['type'] == 'log')):
                        has_log_callback = True
    return has_log_callback
Returns ``True`` if the app has a log callback, ``False`` otherwise.

Used to prevent callback loops. In the calling logic, if this function returns
``True`` the resulting logging event will be suppressed.

Args:
    name (str): Name of the app.
async def has_log_callback(self, name):
    'Returns ``True`` if the app has a log callback, ``False`` otherwise.\n\n        Used to prevent callback loops. In the calling logic, if this function returns\n        ``True`` the resulting logging event will be suppressed.\n\n        Args:\n            name (str): Name of the app.\n\n        '
    has_log_callback = False
    if (name == 'AppDaemon._stream'):
        has_log_callback = True
    else:
        async with self.AD.callbacks.callbacks_lock:
            for callback in self.AD.callbacks.callbacks:
                for _uuid in self.AD.callbacks.callbacks[callback]:
                    cb = self.AD.callbacks.callbacks[callback][_uuid]
                    if ((cb['name'] == name) and (cb['type'] == 'event') and (cb['event'] == '__AD_LOG_EVENT')):
                        has_log_callback = True
                    elif ((cb['name'] == name) and (cb['type'] == 'log')):
                        has_log_callback = True
    return has_log_callback