Kai Liu b63aafce42 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
2013-02-04 19:42:40 -08:00
..
2011-10-31 17:22:06 +00:00
2013-01-31 15:20:24 -08:00
2012-04-17 08:36:46 -07:00
2011-10-31 17:22:06 +00:00
2013-02-04 19:42:40 -08:00
2012-12-16 08:58:28 -08:00
2012-11-28 17:18:41 -08:00
2013-01-31 15:20:24 -08:00