Michal Plichta <mplic...@gmail.com> added the comment:
Nice, btw maybe other parameters in logging's docs needs to be corrected.
--
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Michal Plichta <mplic...@gmail.com> added the comment:
see at typeshed:
https://github.com/python/typeshed/blob/master/stdlib/2and3/logging/__init__.pyi#L147
def setLevel(self, lvl: Union[int, str]) -> None: ...
def setFormatter(self, form: 'Formatter') -> None: ...
this
New submission from Michal Plichta <mplic...@gmail.com>:
my code:
logger = logging.getLogger(name)
logger.setLevel(level=logging.DEBUG)
...
stream_handler = logging.StreamHandler(stream=stdout)
stream_handler.setLevel(logging_level)
stream_handler.setFormatter(fmt=formatter)
and mypy