ez-logger allows you to a 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ez-logger-1.1.10.tar.gz.
File metadata
- Download URL: ez-logger-1.1.10.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dc9dcb2743446730b377785e5965808bfca13f139cb9d74c07f80ead3335cf5
|
|
| MD5 |
11d9609a727f728de3c07bc35fc6fdf5
|
|
| BLAKE2b-256 |
fe45e16a07468ab7f3ccdc020b0ffcacc8450e9157c579728a2d2fcf46402a11
|
File details
Details for the file ez_logger-1.1.10-py2.py3-none-any.whl.
File metadata
- Download URL: ez_logger-1.1.10-py2.py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49de8a4afcd34a94b48aac15757c0861bfac43601ab76a1b01fd98a2c0676a38
|
|
| MD5 |
67a8fd50a4d63bb08d9d298ec1a02b19
|
|
| BLAKE2b-256 |
7cec07b1b708c4fd9e700e3941d9431e5557a06bbd234d9c93ed90b3402d1ec2
|