apache / apache/pulsar-client-cpp

Custom LoggerFactory for log4cxx

未關閉
#376 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C++
星號
71
分支
90
平均合併
2 小時 33 分鐘
30 天內合併 PR
3

描述

FileLoggerFactory simply outputs logs to a single file.
If users want to rotate log files, they need to implement custom LoggerFactory by themselves.
Log4cxxLogger was deleted in #283, but this is useful for users.

So I would like to recover Log4cxxLogger.
I would not create specialized methods for Log4cxxLogger as there used to be, but would like to make it one of the options in the same category as ConsoleLoggerFactory and FileLoggerFactory.
https://github.com/apache/pulsar-client-cpp/pull/283/files#diff-abb02af9369945477ebc3329b299544ba67e214ac3f36c55b1f9e27f68469abf
If we want to avoid embedding it as a build option, we can separate the client and logger packages.

貢獻指南

開啟貢獻指南

研究方向

先檢視 #283 的 diff,以及目前的 ConsoleLoggerFactory 和 FileLoggerFactory 實作,以了解 logger 選項如何公開。在選擇內嵌的 build 選項或分開的 client/logger package 之前,先檢查 build 和 package 配置。完成的標準是將 Log4cxxLogger 恢復為同級選項,且使用者可以在不使用專用方法的情況下,利用它進行自訂 log rotation。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
cpp
領域
build-system, observability-sre
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
30/100

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

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