aio-libs / aio-libs/aiokafka

Override logger

Aberta
#652 0 comentários 1 reação 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
1.4k
Forks
269
Merge médio
1d 1h
PRs com merge (30d)
6

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.