Skip to main content

Loggy - Convenient, friendly and clean logger for Python

Loggy Logo

PyPI License MIT python version codacy grade DeepSource

Sometimes, you need a logger for your program for a better coding experience. Something like multiple type of logging(debug, info, warning, or you can define your type), better with different colors. Maybe more, have some theme for the cute log. Right now, Loggy can be your second choice.

Install

Right now, we are still in early dev. version. We don't recommend using it in serious project.

If you really have interest to test it, please clone it with git and run our test py file for demo. You can also import the Loggy Class to new the logger object into your other python code (See Wiki file for more info).

In the future, we will upload Loggy to pip so everyone can install in one command.

pip install LoggyLogger

Quick Usage

First, lets born a Loggy object.

from Loggy import Loggy

loggy = Loggy("main.py") # The string is the module name what you log from

That's it! Now you can use let loggy to print the colorful and beautiful log at the console.

We have 5 logging level in Loggy. Different logging level have the different color in the default logging theme.

loggy.info("This is info log")
loggy.debug("This is debug log")
loggy.warning("This is warning log")
loggy.error("This is error log")
loggy.critical("This is critical log")

If you want to make your own Loggy logging theme. You can implement the abstract class "LoggyTheme". You can check out our Wiki tutorial (its building right now..... coming soon!).

TODO Features

  • Multiple logging type: default we have "debug", "info", "warning" and "error". User can define their new type of logging for more use case.
  • Different type, different color: multiple colors for multiple logging type
  • Customize Logging format is easy: using easy structure to define format
  • Theme System: you can customize theme for your logger, Highly customized
  • Log into logfile: all your log will log into the file, in the feature, you can easily connect to online monitor with our APIs

Contributor

If you want to join Loggy Dev Teams and contribute to the Loggy project. You can choose whatever you want to do from the task list down below:

  1. Give Loggy a suggestion or cool idea
  2. Help Loggy develope new feature
  3. Create new theme for Loggy
  4. Help Loggy write Wiki docs or translate into your favorite language
  5. Something else I haven't thought of, but it is helpful to Loggy

You can send a PR to our Loggy project, we can discuss more!

Special Thanks

termcolor: We use this to colorful our loggy log. This module is right now build in Loggy. Thanks to termcolor!

Source

Logo: Icon made by Freepik from www.flaticon.com

Metadata

Release files for LoggyLogger 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for LoggyLogger 1.0.1
File Size Uploaded
LoggyLogger-1.0.1.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for LoggyLogger 1.0.1
File Interpreter ABI Platform
LoggyLogger-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.0 kB

Release files / LoggyLogger-1.0.1.tar.gz

Download URL LoggyLogger-1.0.1.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
516c41a8a3fabc3a1cb03d62275634bb601726f06547a31c80e24207e647aa89
BLAKE2b-256 checksum
How to use checksums
683a54629ab248401dfced37ca54072decf781839d3fe5623b4fafd6d49d1119
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Release files / LoggyLogger-1.0.1-py3-none-any.whl

Download URL LoggyLogger-1.0.1-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9242ca8430e1bcf3564429898ab82e66241214cce5a78cc3ab9ce9fe661ab8c
BLAKE2b-256 checksum
How to use checksums
440e784def9b9013a32c7ae5a2f001e43e2aece8eca79c978b16bbd0c08476c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page