Skip to main content

Personalized logger for RPA solutions

Project description

Robolog

This is a set of predefined configurations optimized for RPA usage. The aim of this project is to anticipate which logging configurations would best suit your needs and set them as defaults. This fully capable logger can be created with just a single line of code. It is highly configurable and can seamlessly coexist with other loggers.

If you are acquainted with Python's logging library, you can leverage this tool to save time on intricate configurations. Conversely, if you've recently embarked on your Python journey, you can employ basic syntax without being encumbered by handlers, formatters, and other components necessary for proper logging setup. Simply follow these instructions to utilize a fully functional logger within minutes.

Prerequisites

This package was developed and tested on Windows, but it should function on other systems as long as their console is capable of handling the colorlog library, the sole dependency.

While some tests are planned, they are not implemented at this stage of the project.

Installation

In order to install the robolog package just make sure that you have access to the PyPI and type in your shell:

pip install robolog 

Now you can import the robolog library into your project files.

Test default settings:

After installation, import the robolog library at the top of your script and run the following:

from robolog import robolog

log = robolog.get_logger()

log.debug("Testing logger. This is level DEBUG")
log.info("Testing logger. This is level INFO")
log.warning("Testing logger. This is level WARNING")
log.error("Testing logger. This is level ERROR")

You shuld see all available logs in your console:

Image Alt Text

Also check if default directory log was created. Yhere should be a log file with slightly different (more detailed) format.

Logging customization

Comming soon...

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

robolog-0.2.0.tar.gz (28.4 kB view hashes)

Uploaded Source

Built Distribution

robolog-0.2.0-py3-none-any.whl (27.3 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