Skip to main content

🐍 Simple, minimal and non-bloated logging for Python.

Project description

Loggaby-py

🐍 Simple, minimal logging for Python without useless features.

GitHub license GitHub stars
Loggaby-py is a direct port (aims to be, anyway) of the original JS version. It does 1 thing and does it well: posting nice logs to a terminal. Or perhaps a file? Anywhere you need can be done with a Transport (not present in this Python version as yet).

Oh, it looks like this:
Preview
(Exactly like the original)

Table of Contents

Install

pip install loggaby

Examples

Provided Here.

Documentation

Loggaby(debug=False, levels=[])

The Loggaby constructor, which creates a logger instance.

  • debug {Boolean} Whether to print debug messages. (Default: True)
  • levels Additional custom levels to provide. (An array of dicts)
    • name {str} Name of the level that appears in the logs
    • color {str} Color of the name (accepted values are these or a hex value)
    • debug {bool} Whether this is a debug log (that is hidden with debug: false)
    • fatal {bool} Whether to make the level name and message bold and underline
    • call {str} Name of the function to use this level

Levels

debug, log, warn, error, fatal by default.

You can log with logger.<Level>(). (examples)

License

Loggaby-py is licensed under the MIT license.
Read here for more info.


A Luvella project.

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

loggaby-1.1.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

loggaby-1.1.1-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

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