Skip to main content

Convenient, friendly and clean logger for Python

Project description

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

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

LoggyLogger-1.0.1.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

LoggyLogger-1.0.1-py3-none-any.whl (8.2 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