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.4.tar.gz
(14.5 kB
view details)
Built Distribution
File details
Details for the file queue_logger-0.0.4.tar.gz
.
File metadata
- Download URL: queue_logger-0.0.4.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e897def8ae4a023875bc1f387b7417d3c7a95c08917c28a02968b5b2443755bd |
|
MD5 | 0c3c394f6b77a8dcbee073192579ffbd |
|
BLAKE2b-256 | a800b021b4d2de1816f9f4abcf9b5d7217ce269577f1699f9e3f807c812a49f1 |
File details
Details for the file queue_logger-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: queue_logger-0.0.4-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34e910c985912678eb5770b5f7788162f9e03df8ee4194baebcc6d4f367a4762 |
|
MD5 | 3cc531ebe8591a9b04b11aa8c40f3ee6 |
|
BLAKE2b-256 | 1954f46b4d1adde53469f44bc603773268b3614c0400292d277673c0cb78f98e |