Skip to content

Rename LogRecord type alias to LogDict #38

Open
@FichteFoll

Description

@FichteFoll

The fact that LogRecord is defined as a type alias that is not logging.LogRecord while logging.LogRecord is also thrown around (e.g. in add_fields) is very confusing.

LogRecord: TypeAlias = Dict[str, Any]

I strongly advise to pick a different name for this to differentiate it from the logging class, for example LogDict. This is also a strong contender for v4 imo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions