provide a getSize() interface for the CachedLogGroup , let the user can control the buffered logs count
public LogGroup takeOneLogGroup() -> public LogGroup takeOneLogGroup(int threshold); let the user control how many logs to merge into one logGroup, and if the threshold is set to 0, then take all buffered logs.
thanks to your pr, here is some tiny comments.