peterhinch / micropython-mqtt

A 'resilient' asynchronous MQTT driver. Recovers from WiFi and broker outages.
MIT License
549 stars 116 forks source link

Make log messages friendly for logging module #81

Closed bobveringa closed 1 year ago

bobveringa commented 1 year ago

I know there have been a fair few pull requests and issues logged for changing the logger module to the ulogging module. I doubt that is needed for the majority of users. However, it would be nice if the dprint played a bit nicer with the logging module.

This PR slightly changes the usage of .dprint() to act similar to the ulogging module format.

peterhinch commented 1 year ago

That looks good. I'm unfamiliar with the logging module. I'd appreciate it if you could show me an example of how you'd actually use this change.