Yet Another LOgging Wrapper
Project description
yalow
Yet Another LOgging Wrapper
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
Release history Release notifications | RSS feed
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)
Built Distribution
yalow-0.0.2-py3-none-any.whl
(7.5 kB
view hashes)