public void addLog(Log log){
  caching.add(log);
  lastCacheTime=System.currentTimeMillis();
  if (caching.size() > cachingSize) {
    flushCache();
  }
}

public void addLog ( Log log ) { caching . add ( log ) ; lastCacheTime = System . currentTimeMillis ( ) ; if ( caching . size ( ) > cachingSize ) { flushCache ( ) ; } }
add log to buffer
