MCPcopy Index your code
hub / github.com/python/cpython / PlaceHolder

Class PlaceHolder

Lib/logging/__init__.py:1299–1316  ·  view source on GitHub ↗

PlaceHolder instances are used in the Manager logger hierarchy to take the place of nodes for which no loggers have been defined. This class is intended for internal use only and not as part of the public API.

Source from the content-addressed store, hash-verified

1297#---------------------------------------------------------------------------
1298
1299class PlaceHolder(object):
1300 """
1301 PlaceHolder instances are used in the Manager logger hierarchy to take
1302 the place of nodes for which no loggers have been defined. This class is
1303 intended for internal use only and not as part of the public API.
1304 """
1305 def __init__(self, alogger):
1306 """
1307 Initialize with the specified logger being a child of this placeholder.
1308 """
1309 self.loggerMap = { alogger : None }
1310
1311 def append(self, alogger):
1312 """
1313 Add the specified logger as a child of this placeholder.
1314 """
1315 if alogger not in self.loggerMap:
1316 self.loggerMap[alogger] = None
1317
1318#
1319# Determine which class to use when instantiating loggers.

Callers 1

_fixupParentsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…