public synchronized void start(Callback callback){
  if (callback == null)   throw new IllegalArgumentException("callback should not be null");
  if (mThread != null || mProcess != null)   throw new IllegalStateException("logcat is already started");
  mCallback=callback;
  mRun=true;
  mThread=new Thread(this);
  mThread.start();
}

public synchronized void start ( Callback callback ) { if ( callback == null ) throw new IllegalArgumentException ( "callback should not be null" ) ; if ( mThread != null || mProcess != null ) throw new IllegalStateException ( "logcat is already started" ) ; mCallback = callback ; mRun = true ; mThread = new Thread ( this ) ; mThread . start ( ) ; }
start a thread that will send logcat via a callback
