Skip to content

Releases: adafruit/Adafruit_CircuitPython_Logging

4.1.6 - Made copyright stay up to date in docs/conf.py

26 Aug 02:39
Compare
Choose a tag to compare

To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.

To use in CPython, pip3 install adafruit-circuitpython-logging.

Read the docs for info on how to use it.

4.1.5 - Fixed version string

22 Aug 18:59
Compare
Choose a tag to compare

To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.

To use in CPython, pip3 install adafruit-circuitpython-logging.

Read the docs for info on how to use it.

4.1.4 - Switched to pyproject.toml

09 Aug 19:33
Compare
Choose a tag to compare

To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.

To use in CPython, pip3 install adafruit-circuitpython-logging.

Read the docs for info on how to use it.

4.1.3 - Updated documentation for log levels

12 Jul 14:59
57eceb1
Compare
Choose a tag to compare

Updated and corrected the documentation pertaining to log levels and the behavior of loggers with default levels (NOTSET). Thanks @FoamyGuy!

To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.

To use in CPython, pip3 install adafruit-circuitpython-logging.

Read the docs for info on how to use it.

4.1.2 - Matching CPython Behavior Closer

09 Jul 15:16
047df8f
Compare
Choose a tag to compare

This release automatically sets up the StreamHandler by default which matches CPython behavior. A bug resulting in lack of newlines in log prints has been resolved. Thank you @tekktrik

To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.

To use in CPython, pip3 install adafruit-circuitpython-logging.

Read the docs for info on how to use it.

4.1.1 - Updated type annotations and documentation

21 Jun 16:31
4f4bd44
Compare
Choose a tag to compare

To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.

To use in CPython, pip3 install adafruit-circuitpython-logging.

Read the docs for info on how to use it.

4.1.0 - Expose Handler methods

17 Jun 15:27
fdcae1f
Compare
Choose a tag to compare

Handler methods emit() and format() are now exposed to allow for customization. Also now uses the new LogRecord to pass logging information around like CPython's logging.

To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.

To use in CPython, pip3 install adafruit-circuitpython-logging.

Read the docs for info on how to use it.

4.0.2 - Added cp.org link to index.rst

09 Jun 19:11
Compare
Choose a tag to compare

To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.

To use in CPython, pip3 install adafruit-circuitpython-logging.

Read the docs for info on how to use it.

4.0.1 - Hotfix for version 4.0.0

06 Jun 16:30
8fb3a2d
Compare
Choose a tag to compare

Changed library to only log if a Handler has been attached to a relevant Logger. Also includes minor documentation fix.

To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.

To use in CPython, pip3 install adafruit-circuitpython-logging.

Read the docs for info on how to use it.

4.0.0 - Modified to be a CPython logging subset

03 Jun 15:20
255dfff
Compare
Choose a tag to compare

This library now functions as a subset of the CPython logging module.

This is a breaking changes, and includes the following changes:

  • Make functions not available in CPython private
  • Now only Logger is the only logger, other loggers have been converted into Handler or subclasses of it.
  • The previous PrintLogger has been changed to StreamHandler, with the default stream argument to sys.stderr, and should be treated as a handler as opposed to a logger.
  • Logger can now take a name that gets added to the corresponding global variable
  • Methods have had argument names changed to match CPython names
  • Logger now has no handler as a default
  • hasHandlers() has been added to help offset the previous change
  • FileHandler was moved, and is imported from the main file (e.g. from adafruit_logging import FileHandler)
  • FileHandler is now a subclass of StreamHandler

Additionally:

  • The module has been flattened to a single file
  • setup.py has been modified accordingly
  • Examples updated to account for changes, particularly the change of some previous loggers to handlers

To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.

To use in CPython, pip3 install adafruit-circuitpython-logging.

Read the docs for info on how to use it.