Skip to content

Conversation

@fovea1959
Copy link
Contributor

Adds module-level .log, .info, etc, same as CPython.

Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, thanks for improving compatibility with the CPython module!

I tested successfully with this script and similar adapted for CPython to confirm APIs now match.

import adafruit_logging as logging


logging.log(logging.ERROR, "log(INFO) hello world")
logging.info("INFO hello")
logging.debug("DEBUG hello")
logging.warning("WARNING hello")
logging.error("ERROR hello")
logging.critical("CRITICAL hello")

@FoamyGuy FoamyGuy merged commit e4fac46 into adafruit:main Nov 12, 2025
1 check passed
adafruit-adabot pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants