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
Release history Release notifications | RSS feed
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.3.tar.gz
(14.5 kB
view hashes)
Built Distribution
Close
Hashes for queue_logger-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ef3645b4f87b15f5fa66758b15350a9f39b17155849b9a9dc3b4e8b8068b553 |
|
MD5 | 2e6c2977dda896b50f4108a0e5a8adad |
|
BLAKE2b-256 | 4575899da00ae8c8ca2305dc9de9f7f079fcf7d091bf65cc04ebe73266debc05 |