logot.loggedΒΆ
Log pattern matching API.
See also
See Log pattern matching usage guide.
API referenceΒΆ
- logot.logged.log(level: str | int, msg: str, *matchers: Matcher, exc_info: bool | BaseException | None = ..., name: str | None = ...) LoggedΒΆ
Creates a log pattern representing a log record at the given
levelwith the givenmsg.- Parameters:
level β A log level name (e.g.
"DEBUG") or numeric level (e.g.logging.DEBUG).msg β A log message pattern.
matchers β Additional custom
logot.Matcherinstances.exc_info β An optional exception to match. If
True, matches any exception. IfFalseorNone, matches no exception.name β An optional logger name.
- logot.logged.debug(msg: str, *matchers: Matcher, exc_info: bool | BaseException | None = ..., name: str | None = ...) LoggedΒΆ
Creates a log pattern representing a log record at
DEBUGlevel with the givenmsg.- Parameters:
msg β A log message pattern.
matchers β Optional additional custom
logot.Matcherinstances.exc_info β An optional exception to match. If
True, matches any exception. IfFalseorNone, matches no exception.name β An optional logger name.
- logot.logged.info(msg: str, *matchers: Matcher, exc_info: bool | BaseException | None = ..., name: str | None = ...) LoggedΒΆ
Creates a log pattern representing a log record at
INFOlevel with the givenmsg.- Parameters:
msg β A log message pattern.
matchers β Optional additional custom
logot.Matcherinstances.exc_info β An optional exception to match. If
True, matches any exception. IfFalseorNone, matches no exception.name β An optional logger name.
- logot.logged.warning(msg: str, *matchers: Matcher, exc_info: bool | BaseException | None = ..., name: str | None = ...) LoggedΒΆ
Creates a log pattern representing a log record at
WARNINGlevel with the givenmsg.- Parameters:
msg β A log message pattern.
matchers β Optional additional custom
logot.Matcherinstances.exc_info β An optional exception to match. If
True, matches any exception. IfFalseorNone, matches no exception.name β An optional logger name.
- logot.logged.error(msg: str, *matchers: Matcher, exc_info: bool | BaseException | None = ..., name: str | None = ...) LoggedΒΆ
Creates a log pattern representing a log record at
ERRORlevel with the givenmsg.- Parameters:
msg β A log message pattern.
matchers β Optional additional custom
logot.Matcherinstances.exc_info β An optional exception to match. If
True, matches any exception. IfFalseorNone, matches no exception.name β An optional logger name.
- logot.logged.critical(msg: str, *matchers: Matcher, exc_info: bool | BaseException | None = ..., name: str | None = ...) LoggedΒΆ
Creates a log pattern representing a log record at
CRITICALlevel with the givenmsg.- Parameters:
msg β A log message pattern.
matchers β Optional additional custom
logot.Matcherinstances.exc_info β An optional exception to match. If
True, matches any exception. IfFalseorNone, matches no exception.name β An optional logger name.