public synchronized void add(String logSinkClass)
    {
        try
        {
            if (logSinkClass==null || logSinkClass.length()==0)
                logSinkClass="org.browsermob.proxy.jetty.log.OutputStreamLogSink";
            Class sinkClass =  Loader.loadClass(this.getClass(),logSinkClass);
            LogSink sink=(LogSink)sinkClass.newInstance();
            add(sink);
        }
        catch(Exception e)
        {
            message(WARN,e,2);
            throw new IllegalArgumentException(e.toString());
        }
        
    }
public synchronized void add ( String logSinkClass ) { try { if ( logSinkClass == null || logSinkClass . length ( ) == 0 ) logSinkClass = "org.browsermob.proxy.jetty.log.OutputStreamLogSink" ; Class sinkClass = Loader . loadClass ( this . getClass ( ) , logSinkClass ) ; LogSink sink = ( LogSink ) sinkClass . newInstance ( ) ; add ( sink ) ; } catch ( Exception e ) { message ( WARN , e , 2 ) ; throw new IllegalArgumentException ( e . toString ( ) ) ; } }
Add a Log Sink.
@param logSinkClass The logsink classname or null for the default.