Skip to main content

Logger for Python

Project description

This Package can be used from Debugging purposes. When you are working in long project, you often use print statement for debugging purposes. Sometime, you use to many print statement and after completing debugging you spent sometime to find and remove all those previous print statement

What does this package do? When you print something for debugging purposes using this package, it will print out in following pattern

[TYPE_OF_WARNING] -> TextType (INFO, WARNING, etc) [From] -> Which method is calling this packages' method [Line] -> On which line is it calling [Statement(s)] -> Print all the messages you have writen

You can even pass multiple texts as parameters just like in print statement

Example from package_logger import LoggerClass, TextType

logger = LoggerClass() logger.print("Hello", "World", type_ = TextType.INFO)

You can use colorPrint method instead of print method to print with color for different messages type Example from package_logger import ColorType logger.colorPrint("Hello", "World", type_ = TextType.INFO, color = ColorType.COLOR_INFO)

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

package_logger-1.0.0.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

package_logger-1.0.0-py3-none-any.whl (2.4 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