Update examples using adafruit_logging
tekktrik opened this issue · comments
Alec Delaney commented
Some examples use an older version adafruit_logging
than the new API-breaking version 4.0.0. I can get a full list together, but wanted to create the issue to track.
@FoamyGuy - one example I noticed does actually create custom handlers, a use case we talked about. Was wondering if that changed your thoughts on bring the Handler
class in alignment with CPython and adding LogRecord
. Either way, the example would need to get updated, so I guess it's just a question on how.
Alec Delaney commented
- https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/b853183104256a9ef81b2ad40f74cf3d58c59f5e/CircuitPython_Logger
- https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/53dc4d11c5d78fdf7fd2b1b8b2c7d842ef47d46d/BrainCraft_Google_Assistant
- https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/eda9d522517bc728e305b07aabceb24fc8ddcb17/Crickits
- https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/20a827ff50ebb18262bf9e8622cde5a42e6a9522/CircuitPython_sdcardio_sdioio
- https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/cd6c4942d3bf1762d3a129b357383688e8887a64/IoT_Environment_Sensor
- https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/48e6d3b71c329b13265694f502466497e243b28a/CircuitPython_PyPaint
- https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/b853183104256a9ef81b2ad40f74cf3d58c59f5e/Google_Sheet_Sensor_Logging
- https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/88921d7b2af47f368003db840c5ea7fce3c6db9a/DHT_Google_Spreadsheet
- https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/0b97a910111b554ec7c7c9f3b293af5a511ba417/Getting_Started_With_Raspberry_Pi_Pico
- https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/33262aacf7204070f08ddc0e60d15cd18fc0ddfc/Pulse_Oximeter_Logger
- https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/89e407584453a232b451c11d5d553622458470ba/PyPortal_Alarm_Clock
- https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/a092370c6497c0cbb5b72565b8b9734cf09346d8/CircuitPython_Essentials
Alec Delaney commented
WIth adafruit_logging
4.1.0, this is doable!
Alec Delaney commented
Fixed by #2197