public MemoryHandler(int size,Level pushLevel,FileHandler handler){
  this.pushLevelC=(pushLevel == null) ? DEFAULT_PUSHLEVEL : pushLevel;
  if (size <= 0)   size=DEFAULT_SIZE;
  buffer=new LogRecord[size];
  start=0;
  count=0;
  try {
    targetC=handler;
    targetC.setLevel(pushLevelC);
    targetC.setFormatter(new SimpleLogFormatter());
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

public MemoryHandler ( int size , Level pushLevel , FileHandler handler ) { this . pushLevelC = ( pushLevel == null ) ? DEFAULT_PUSHLEVEL : pushLevel ; if ( size <= 0 ) size = DEFAULT_SIZE ; buffer = new LogRecord [ size ] ; start = 0 ; count = 0 ; try { targetC = handler ; targetC . setLevel ( pushLevelC ) ; targetC . setFormatter ( new SimpleLogFormatter ( ) ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } }
constructs a memoryhandler object .
