Convenient, friendly and clean logger for Python
Project description
Loggy - Convenient, friendly and clean logger for Python
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:
- Give Loggy a suggestion or cool idea
- Help Loggy develope new feature
- Create new theme for Loggy
- Help Loggy write Wiki docs or translate into your favorite language
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file LoggyLogger-1.0.1.tar.gz
.
File metadata
- Download URL: LoggyLogger-1.0.1.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 516c41a8a3fabc3a1cb03d62275634bb601726f06547a31c80e24207e647aa89 |
|
MD5 | 3c743cfb33bdf2b8b24098552763d327 |
|
BLAKE2b-256 | 683a54629ab248401dfced37ca54072decf781839d3fe5623b4fafd6d49d1119 |
File details
Details for the file LoggyLogger-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: LoggyLogger-1.0.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9242ca8430e1bcf3564429898ab82e66241214cce5a78cc3ab9ce9fe661ab8c |
|
MD5 | 96d0e4bc47274609c4d4a7a501ca98f5 |
|
BLAKE2b-256 | 440e784def9b9013a32c7ae5a2f001e43e2aece8eca79c978b16bbd0c08476c6 |