Merge pull request #102 from joeyleake/fix/58-dont-configure-root-logger

Stop configuring the root logger on import
This commit is contained in:
fdlamotte
2026-09-12 11:43:10 -04:00
committed by GitHub
3 changed files with 16 additions and 5 deletions
+9
View File
@@ -371,6 +371,15 @@ meshcore = await MeshCore.create_serial("/dev/ttyUSB0", debug=True)
This logs detailed information about commands sent and events received.
meshcore_py does not configure Python's root logger or call `logging.basicConfig()` itself - it only attaches a `NullHandler` so it stays silent by default. To see its logs, configure logging in your own application, e.g.:
```python
import logging
logging.basicConfig(level=logging.INFO)
logging.getLogger("meshcore").setLevel(logging.DEBUG)
```
## Common Examples
### Sending Messages to Contacts