saltext.vault.utils._types¶
- class saltext.vault.utils._types.SaltLogger(name, level=0)[source]¶
- debug(msg, *args, exc_info: None | bool | tuple[type[BaseException], BaseException, TracebackType | None] | tuple[None, None, None] | BaseException = None, stack_info: bool = False, stacklevel: int = 1, extra: Mapping[str, object] | None = None, exc_info_on_loglevel: Literal[0] | Literal[1] | Literal[5] | Literal[10] | Literal[15] | Literal[20] | Literal[30] | Literal[40] | Literal[50] | Literal[1000] | Literal['all'] | Literal['garbage'] | Literal['trace'] | Literal['debug'] | Literal['profile'] | Literal['info'] | Literal['warning'] | Literal['error'] | Literal['critical'] | Literal['quiet'] | None = None)[source]¶
Log ‘msg % args’ with severity ‘DEBUG’.
To pass exception information, use the keyword argument exc_info with a true value, e.g.
logger.debug(“Houston, we have a %s”, “thorny problem”, exc_info=True)
- info(msg, *args, exc_info: None | bool | tuple[type[BaseException], BaseException, TracebackType | None] | tuple[None, None, None] | BaseException = None, stack_info: bool = False, stacklevel: int = 1, extra: Mapping[str, object] | None = None, exc_info_on_loglevel: Literal[0] | Literal[1] | Literal[5] | Literal[10] | Literal[15] | Literal[20] | Literal[30] | Literal[40] | Literal[50] | Literal[1000] | Literal['all'] | Literal['garbage'] | Literal['trace'] | Literal['debug'] | Literal['profile'] | Literal['info'] | Literal['warning'] | Literal['error'] | Literal['critical'] | Literal['quiet'] | None = None)[source]¶
Log ‘msg % args’ with severity ‘INFO’.
To pass exception information, use the keyword argument exc_info with a true value, e.g.
logger.info(“Houston, we have a %s”, “interesting problem”, exc_info=True)
- warning(msg, *args, exc_info: None | bool | tuple[type[BaseException], BaseException, TracebackType | None] | tuple[None, None, None] | BaseException = None, stack_info: bool = False, stacklevel: int = 1, extra: Mapping[str, object] | None = None, exc_info_on_loglevel: Literal[0] | Literal[1] | Literal[5] | Literal[10] | Literal[15] | Literal[20] | Literal[30] | Literal[40] | Literal[50] | Literal[1000] | Literal['all'] | Literal['garbage'] | Literal['trace'] | Literal['debug'] | Literal['profile'] | Literal['info'] | Literal['warning'] | Literal['error'] | Literal['critical'] | Literal['quiet'] | None = None)[source]¶
Log ‘msg % args’ with severity ‘WARNING’.
To pass exception information, use the keyword argument exc_info with a true value, e.g.
logger.warning(“Houston, we have a %s”, “bit of a problem”, exc_info=True)
- error(msg, *args, exc_info: None | bool | tuple[type[BaseException], BaseException, TracebackType | None] | tuple[None, None, None] | BaseException = None, stack_info: bool = False, stacklevel: int = 1, extra: Mapping[str, object] | None = None, exc_info_on_loglevel: Literal[0] | Literal[1] | Literal[5] | Literal[10] | Literal[15] | Literal[20] | Literal[30] | Literal[40] | Literal[50] | Literal[1000] | Literal['all'] | Literal['garbage'] | Literal['trace'] | Literal['debug'] | Literal['profile'] | Literal['info'] | Literal['warning'] | Literal['error'] | Literal['critical'] | Literal['quiet'] | None = None)[source]¶
Log ‘msg % args’ with severity ‘ERROR’.
To pass exception information, use the keyword argument exc_info with a true value, e.g.
logger.error(“Houston, we have a %s”, “major problem”, exc_info=True)
- critical(msg, *args, exc_info: None | bool | tuple[type[BaseException], BaseException, TracebackType | None] | tuple[None, None, None] | BaseException = None, stack_info: bool = False, stacklevel: int = 1, extra: Mapping[str, object] | None = None, exc_info_on_loglevel: Literal[0] | Literal[1] | Literal[5] | Literal[10] | Literal[15] | Literal[20] | Literal[30] | Literal[40] | Literal[50] | Literal[1000] | Literal['all'] | Literal['garbage'] | Literal['trace'] | Literal['debug'] | Literal['profile'] | Literal['info'] | Literal['warning'] | Literal['error'] | Literal['critical'] | Literal['quiet'] | None = None)[source]¶
Log ‘msg % args’ with severity ‘CRITICAL’.
To pass exception information, use the keyword argument exc_info with a true value, e.g.
logger.critical(“Houston, we have a %s”, “major disaster”, exc_info=True)