MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _StderrHandler

Class _StderrHandler

tools/python-3.11.9-amd64/Lib/logging/__init__.py:1237–1251  ·  view source on GitHub ↗

This class is like a StreamHandler using sys.stderr, but always uses whatever sys.stderr is currently set to rather than the value of sys.stderr at handler construction time.

Source from the content-addressed store, hash-verified

1235
1236
1237class _StderrHandler(StreamHandler):
1238 """
1239 This class is like a StreamHandler using sys.stderr, but always uses
1240 whatever sys.stderr is currently set to rather than the value of
1241 sys.stderr at handler construction time.
1242 """
1243 def __init__(self, level=NOTSET):
1244 """
1245 Initialize the handler.
1246 """
1247 Handler.__init__(self, level)
1248
1249 @property
1250 def stream(self):
1251 return sys.stderr
1252
1253
1254_defaultLastResort = _StderrHandler(WARNING)

Callers 1

__init__.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected