Skip to main content

Yet Another LOgging Wrapper

Project description

yalow

Yet Another LOgging Wrapper

Documentation Status Python package

Overview

This package provides a generic wrapper for Python's logging module. A log directory is created in the project root directory. The log generated by yalow is intended for use in situations where you need a single project log that all of the packages in your project write to.

Installation

pip install yalow

How Does Do

Get the root path of your project in whatever way you would like. Once that's accomplished provide it to Yalow along with your project name:

from yalow import Yalow
logger = Yalow(root_path=I_AM_GROOT, project_name='logalog').logger

Example log output format:

2020-03-06 21:16:13,495 - logalog - INFO: Logging initialized for project: logalog
2020-03-06 21:16:13,495 - logalog - INFO: IT'S ALIVE!!!!!
2020-03-06 21:16:13,496 - logalog.example_package - ERROR: And its minion is HUGE!

Refer to examples for usage details.

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

yalow-0.0.2.tar.gz (2.9 kB view hashes)

Uploaded source

Built Distribution

yalow-0.0.2-py3-none-any.whl (7.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page