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 details)
Built Distribution
File details
Details for the file ez-logger-1.0.2.tar.gz
.
File metadata
- Download URL: ez-logger-1.0.2.tar.gz
- Upload date:
- Size: 4.2 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 | b37965a62296a17c650d1c1165e0bacb1c3e054c09499b70e2972b30a1ca0a08 |
|
MD5 | 3f7d02035f795d89fbb67e24da00dbb3 |
|
BLAKE2b-256 | d012f2aa58d3119e57e7983ef1917dba03163c7a6d96323c26da931985cee2a5 |
File details
Details for the file ez_logger-1.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: ez_logger-1.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 5.4 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 | a6403b2240a5c7014bc4c879367fd01d6ed1f79c89defcb5cefd33f295660a3f |
|
MD5 | dea5e9a86b3598f0de3743e398713e16 |
|
BLAKE2b-256 | 234de3487d85f91531c07fa2279fda6c7cc081613bc9e75b7cc245ef85de89ce |