Skip to main content

A simple, easy to use, and powerful logging library for Python.

Project description

Please Log Shit Please (or plsp)

Notes

`infoinject` is a module allowing you to 'compile' python source code with added debug information.
this means that the interesting parts of the code stay separate from printing and other debug code.
=====================
Pieces of the puzzle.
=====================

Logger 			- The piece that does the logging.

Debug_Context 		- Use this along side with the logger to separate different areas of an application.
			- For example, you may have a rendering context and a physics context inside a game engine.

Debug_Mode 		- Use this to specify different levels of debug information.
			- For example, you may have a "info" mode and a "detail" mode.
			- If the "info" mode is active, any messages that are in the "detail" mode will not be printed.
			- This is because the "detail" mode extends from the "info" mode.
			- If the "detail" mode is active, any messages that are in the "info"
			-   and "detail" mode will be printed.

infoinject 		- The piece that injects the debug information into the source code.
			- Uses the Logger to log the debug information.

formatters/ 		- The pieces that format the debug information.
			- For example, you may want to have the time of the debug information to
			-   be formatted in a specific way.
			- You may also want to have the caller of the debug information to be formatted in a specific way.
			- The formatters may be added onto any specified debug context. Then, when the Logger is used
			-   by said context, the formatters will be used to format the debug information.



====================================
How the pieces relate to each other.
====================================

> Nodes A that is down from node B means that A depends on, or is used by, B.

	Logger
	/ \
	+  +--------------------+
	|                       |
	Debug_Context           Debug_Mode
	|
	formatters/

V0.26 released on 20th/5/2024

Major refactor to only expose what we want to.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plsp-0.26.tar.gz (22.1 kB view details)

Uploaded Source

File details

Details for the file plsp-0.26.tar.gz.

File metadata

  • Download URL: plsp-0.26.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for plsp-0.26.tar.gz
Algorithm Hash digest
SHA256 0ca0d788983be97b830e570c57130cf93a17cce4bcdc98d517200277c3e4bfe9
MD5 86fec144b2dc72256ffa284bc81df76a
BLAKE2b-256 215664abe6e8ff9f05e6bdf59631b83eaebefba85a6bfa74909f3edc0003c539

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page