-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Description
The code says only one handler is supported:
Adafruit_CircuitPython_Logging/adafruit_logging.py
Lines 298 to 306 in a67856d
def addHandler(self, hdlr: Handler) -> None: | |
"""Sets the handler of this logger to the specified handler. | |
*NOTE* This is slightly different from the CPython equivalent | |
which adds the handler rather than replacing it. | |
:param Handler hdlr: The handler to add | |
""" | |
self._handler = hdlr |
Is this some hidden limitation or conscious implementation choice ?
I am asking because I'd like to implement a MQTTHandler
(log by publishing MQTT messages) and use it in addition to the StreamHandler
for my project (vladak/shield#3).
Metadata
Metadata
Assignees
Labels
No labels