aio-libs / aio-libs/aiokafka

Override logger

Ouverte
#652 0 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
1.4k
Forks
269
Merge moyen
1 j 1 h
PR mergées (30 j)
6

Description

Aiokafka consumers and producers are writing many important logs, which saving them would be usefull.
However, as far as i know there is no offical way for changing the aiokafka default logger.
And the way i is to override the loggers inside the modules, which is a very bad way.
Thus, it would be great, if consumers and producers constructors could get a logger as an optional argument.
That way, the user could set is own logger with special handlers and formats for the aiokafka logs, which could give the user much needed info about the errors, such as time, partitions, and consumer name.

Many thanks

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.