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.
| 1297 | #--------------------------------------------------------------------------- |
| 1298 | |
| 1299 | class 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…