hynek / structlog

Simple, powerful, and fast logging for Python.
https://www.structlog.org/
Other
3.48k stars 220 forks source link

use real method for `warn` and `fatal` to improve UX #648

Open trim21 opened 1 month ago

trim21 commented 1 month ago

warn method and fatal method of BoundLogger are created with warn = warning, make both pycharm and vscode not automatically add ( after auto-complete, write a real method like def warn(self, event: str | None = None, *args: Any, **kw: Any) -> Any: will help this.

This is not a big issue but it would be nice to improve UX.