-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
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