Skip to content

Types

Custom type definitions/aliases.

AnyMap module-attribute

AnyMap = Mapping[str, Any]

LevelFmtMap module-attribute

LevelFmtMap = Mapping[LogLevel, str]

LogLevel module-attribute

LogLevel = Union[int, str]

Style module-attribute

Style = PercentStyle

StyleKey module-attribute

StyleKey = Literal['%', '{', '$']

FormatterKwargs

Bases: TypedDict

Constructor keyword-arguments of the logging.Formatter.

datefmt instance-attribute

datefmt: Optional[str]

defaults instance-attribute

defaults: Optional[AnyMap]

fmt instance-attribute

fmt: Optional[str]

style instance-attribute

style: StyleKey

validate instance-attribute

validate: bool

StyleKwargs

Bases: TypedDict

Constructor keyword-arguments of any logging.PercentStyle.

defaults instance-attribute

defaults: NotRequired[Optional[AnyMap]]

fmt instance-attribute

fmt: str