code: public synchronized void stop()
      {
          _started=false;
  
          if (_out!=null)
          {
              try
              {
                  if (_buffer.size()>0)
                  {
                      _buffer.writeTo(_out);
                  }
                  _out.flush();
                  _buffer=null;
              }
              catch(Exception e){if (_logImpl!=null && _logImpl.getDebug())e.printStackTrace();}
              Thread.yield();
          }
          
          if (_out!=null && _out!=LogStream.STDERR_STREAM)
          {
              try{_out.close();}
              catch(Exception e){if (_logImpl!=null && _logImpl.getDebug())e.printStackTrace();}
          }
  
          if (_filename!=null)
              _out=null;
      }
docs: Stop a log sink.
  An opportunity for subclasses to clean up. The default
  implementation does nothing