public LoggingOutputStream(Logger cat,Level priority) throws IllegalArgumentException {
  if (cat == null) {
    throw new IllegalArgumentException("cat == null");
  }
  if (priority == null) {
    throw new IllegalArgumentException("priority == null");
  }
  this.priority=priority;
  category=cat;
  bufLength=DEFAULT_BUFFER_LENGTH;
  buf=new byte[DEFAULT_BUFFER_LENGTH];
  count=0;
}

public LoggingOutputStream ( Logger cat , Level priority ) throws IllegalArgumentException { if ( cat == null ) { throw new IllegalArgumentException ( "cat == null" ) ; } if ( priority == null ) { throw new IllegalArgumentException ( "priority == null" ) ; } this . priority = priority ; category = cat ; bufLength = DEFAULT_BUFFER_LENGTH ; buf = new byte [ DEFAULT_BUFFER_LENGTH ] ; count = 0 ; }
creates the loggingoutputstream to flush to the given category .
