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.2.tar.gz
(14.5 kB
view hashes)
Built Distribution
Close
Hashes for queue_logger-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fca5c21417b63c0da714ae778fad7a7c780b6fa8a49e056514a3efcabc71783f |
|
MD5 | ce151f15a2f11e8acdde17f54a9bdc13 |
|
BLAKE2b-256 | b576711ae561b72f5ae1d52a7636129b8f7ec2239f3af23273a9e973b48689a1 |