Skip to main content

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.

API Docs
--

API docs are maintained [here](https://ez-logger.readthedocs.io/en/latest/index.html)

Usage
--

```bash
pip install ez-logger
```

```python
from ez_logger.console_logger import ConsoleLogger
logger = ConsoleLogger()
logger.error('some error occurred')
```

```bash
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](https://ez-logger.readthedocs.io/en/latest/index.html) for detailed documentation.

Development
--

```bash
virtualenv venv
source venv/bin/activate

pip install -r requirements.txt
```

Run Tests
--

```bash
python -m pytest -v tests/unit/*.py
```


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ez-logger, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size ez_logger-0.0.2-py2-none-any.whl (4.8 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size ez-logger-0.0.2.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

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 Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page