python-coloredlogs icon indicating copy to clipboard operation
python-coloredlogs copied to clipboard

stream's StandardErrorHandler shouldn't be a property

Open RobinFrcd opened this issue 4 years ago • 0 comments

Hello, Since Python 3.7 streams can be managed with StreamHandler.setStream.

Somewhere in my code, I'm setting a stream which raises the following error:

  File "/Users/rfourcade/.pyenv/versions/3.7.9/lib/python3.7/logging/__init__.py", line 1050, in setStream
    self.stream = stream
AttributeError: can't set attribute

Would it be possible to remove this property and just make the sys.stderr the default stream value ?

Thanks

RobinFrcd avatar Aug 19 '21 16:08 RobinFrcd