ez-logger allows you to create commonly used logger for everyday operations
Project description
ez-logger
ez-logger
is a python module that offers easy to use API's for performing common logging operations.
This library has been tested on the following platforms.
- Windows
- Linux
- Mac OSX
It also works on both python major versions.
- python 2.7
- python 3.6
API Docs
API docs are maintained here
Usage
pip install ez-logger
from ez_logger.console_logger import ConsoleLogger
logger = ConsoleLogger()
logger.error('some error occurred')
from ez_logger.file_logger import FileLogger
logger = FileLogger(
log_file='test.log',
log_dir='/tmp'
)
logger.error('some error occurred')
Refer to API Docs for detailed documentation.
Development
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
Run Tests
python -m pytest -v tests/unit/*.py --spec
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
ez-logger-1.0.2.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for ez_logger-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6403b2240a5c7014bc4c879367fd01d6ed1f79c89defcb5cefd33f295660a3f |
|
MD5 | dea5e9a86b3598f0de3743e398713e16 |
|
BLAKE2b-256 | 234de3487d85f91531c07fa2279fda6c7cc081613bc9e75b7cc245ef85de89ce |