MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / setLogger

Function setLogger

pager_lib/pyasn1/debug.py:107–117  ·  view source on GitHub ↗
(userLogger)

Source from the content-addressed store, hash-verified

105
106
107def setLogger(userLogger):
108 global _LOG
109
110 if userLogger:
111 _LOG = userLogger
112 else:
113 _LOG = DEBUG_NONE
114
115 # Update registered logging clients
116 for module, (name, flags) in LOGGEE_MAP.items():
117 setattr(module, name, _LOG & flags and _LOG or DEBUG_NONE)
118
119
120def registerLoggee(module, name='LOG', flags=DEBUG_NONE):

Callers 1

registerLoggeeFunction · 0.85

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected