MCPcopy Create free account
hub / github.com/miguelgrinberg/python-socketio / _get_logger

Method _get_logger

src/socketio/base_manager.py:159–170  ·  view source on GitHub ↗

Get the appropriate logger Prevents uninitialized servers in write-only mode from failing.

(self)

Source from the content-addressed store, hash-verified

157 return id
158
159 def _get_logger(self):
160 """Get the appropriate logger
161
162 Prevents uninitialized servers in write-only mode from failing.
163 """
164
165 if self.logger:
166 return self.logger
167 elif self.server:
168 return self.server.logger
169 else:
170 return default_logger

Callers 15

initializeMethod · 0.80
_threadMethod · 0.80
trigger_callbackMethod · 0.80
_publishMethod · 0.80
_listenMethod · 0.80
_publishMethod · 0.80
_publishMethod · 0.80
initializeMethod · 0.80
_threadMethod · 0.80
trigger_callbackMethod · 0.80

Calls

no outgoing calls