Allow the logs to be purged by TTL.
Summary: * Add a SplitByTTLLogger to enable this feature. In this diff I implemented generalized AutoSplitLoggerBase class to simplify the development of such classes. * Refactor the existing AutoSplitLogger and fix several bugs. Test Plan: * Added a unit tests for different types of "auto splitable" loggers individually. * Tested the composited logger which allows the log files to be splitted by both TTL and log size. Reviewers: heyongqiang, dhruba Reviewed By: heyongqiang CC: zshao, leveldb Differential Revision: https://reviews.facebook.net/D8037
Showing
util/auto_roll_logger.cc
0 → 100644
util/auto_roll_logger.h
0 → 100644
util/auto_roll_logger_test.cc
0 → 100755
util/auto_split_logger.h
已删除
100644 → 0
想要评论请 注册 或 登录