napari_plugin_engine/exceptions.py
def log(
        self,
        package_info: bool = True,
        logger: Union[logging.Logger, None, str] = None,
        level: int = logging.ERROR,
    ):
        """Log this error with metadata, optionally provide logger and level.

        Parameters
        ----------
        package_info : bool, optional
            If true, will include package metadata in log, by default True
        logger : logging.Logger or str, optional
            A Logger instance or name of a logger to use, by default None
        level : int, optional
            The logging level to use, by default logging.ERROR
        """
        if not isinstance(logger, logging.Logger):
            logger = logging.getLogger(logger)

        logger.log(level, self.format(package_info=package_info))
Log this error with metadata, optionally provide logger and level.

        Parameters
        ----------
        package_info : bool, optional
            If true, will include package metadata in log, by default True
        logger : logging.Logger or str, optional
            A Logger instance or name of a logger to use, by default None
        level : int, optional
            The logging level to use, by default logging.ERROR
        
Log this error with metadata, optionally provide logger and level.
Parameters

package_info : bool, optional
If true, will include package metadata in log, by default True
logger : logging.Logger or str, optional
A Logger instance or name of a logger to use, by default None
level : int, optional
The logging level to use, by default logging.ERROR
Log this error with metadata optionally provide logger and level . Parameters package_info : bool optional If true will include package metadata in log by default True logger : logging . Logger or str optional A Logger instance or name of a logger to use by default None level : int optional The logging level to use by default logging . ERROR
def log(
        self,
        package_info: bool = True,
        logger: Union[logging.Logger, None, str] = None,
        level: int = logging.ERROR,
    ):
        if not isinstance(logger, logging.Logger):
            logger = logging.getLogger(logger)
        logger.log(level, self.format(package_info=package_info))
def log ( self , package_info : bool = True , logger : Union [ logging . Logger , None , str ] = None , level : int = logging . ERROR , ) : if not isinstance ( logger , logging . Logger ) : logger = logging . getLogger ( logger ) logger . log ( level , self . format ( package_info = package_info ) )
Log this error with metadata, optionally provide logger and level.
Log this error with metadata optionally provide logger and level .
"""Log this error with metadata, optionally provide logger and level.

        Parameters
        ----------
        package_info : bool, optional
            If true, will include package metadata in log, by default True
        logger : logging.Logger or str, optional
            A Logger instance or name of a logger to use, by default None
        level : int, optional
            The logging level to use, by default logging.ERROR
        """
self
package_info
bool
logger
Union[logging.Logger, None, str]
level
int