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.
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
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!).
- 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
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!
termcolor: We use this to colorful our loggy log. This module is right now build in Loggy. Thanks to termcolor!
Logo: Icon made by Freepik from www.flaticon.com