Skip to main content

ez-logger allows you to a logger for everyday operations

Project description

Documentation Status Pipeline Status PyPI PyPI

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.

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

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page