Skip to main content

Python logger with custom handler for rabbitmq

Project description

Set following Environment variables:
QUEUE_HOST=QUEUE_BROKER_HOST
QUEUE_PORT=QUEUE_BROKER_PORT
QUEUE_USER=QUEUE_BROKER_USER
QUEUE_PASS=QUEUE_BROKER_PASS

import logging
from QLGR import create_logger


logger = create_logger(__name__, logging.NOTSET)
logger.info('This is an informational message.')
logger.error('This is an error message.')

Check your message broker (rabbitmq in this case), there must be 2 messages on logs queue.

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

queue_logger-0.0.4.tar.gz (14.5 kB view hashes)

Uploaded Source

Built Distribution

queue_logger-0.0.4-py3-none-any.whl (14.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page