Skip to content

Add catching of record=True #18

@kornicameister

Description

@kornicameister

Ref: #6
Ref: python/mypy#9010

This is basically an extension of what was implemented for #6. With record=True user can access special dictionary inside of a template. record=False basically means opposite so user should be told that he is doing the wrong thing for both of cases;

logger.info('{record["msg"]}') # bad
logger.opt(record=True).info('{record["msg"]}') # ok

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions