pynedm.log¶
Logging utilities
-
pynedm.log.
listening_addresses
()[source]¶ Return external addresses where we are listening to broadcast the log:
Returns: list – [ ‘ws://x.x.x.x:y’, ... ]
-
class
pynedm.log.
BroadcastLogHandler
[source]¶ Listens on 0.0.0.0 (all interfaces) and sends log messages to connected clients. Clients must connect via WebSocket and receive logging information in JSON format, e.g.:
{ 'level' : 'INFO', 'msg' : 'A sent message' }
This is used in live logging of Raspberry Pis, for example in the nEDM-Interface.