Python library for logging celery events
Project description
Celery Logger
celery-logger is a python library for logging celery events such as tasks received, tasks failed/succeeded and tasks retried, along with task args.
Features
- Simple and flexible task logs
- Multiple deployment options (docker, virtual machines)
- Integration possibilities: ELK stack and AWS cloudwatch for example
Sample project
We provided a sample project for playing around and seeing how it works.
Getting started:
# navigate to the sample-project folder
$ cd sample-project
# Build and start the containers:
$ docker-compose up
Querying logs
Make sure you are in the sample-project folder
Calling a few tasks
$ docker-compose exec celeryd python call_tasks.py
Tasks have been called!
Run `docker-compose logs -f celery-logger` to see the logger in action.
Taking a look in all events
$ docker-compose logs celery-logger
Searching for failed tasks:
$ docker-compose logs celery-logger | grep task-failed
Searching for a specific task:
$ docker-compose logs celery-logger | grep "app.add"
Searching for a specific task and args:
$ docker-compose logs celery-logger | grep "app.add" | grep "(6, 1)"
Searching for a task id
$ docker-compose logs celery-logger | grep 20925a8c-03f7-4bd7-b3dd-24e2bc9e26e2
Installation
Usage
Contributing
License
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
celery-logger-0.0.1.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for celery_logger-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f66a922b455e99b75551d9380ca874667195e0f9fcd12b56b1154379db7d70ed |
|
MD5 | 90d597311b35f92ec259918e76c2d72b |
|
BLAKE2b-256 | b0f1d83c266c3053c07846696f5fdc6137d69d4046fd8e7e1f1b1f596dd348ad |