aio-libs / aio-libs/aiokafka

Override logger

未關閉
#652 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
1.4k
分支
269
平均合併
1 天 1 小時
30 天內合併 PR
6

描述

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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。