Examples of PriorityFilter


Examples of com.baulsupp.kolja.log.filter.PriorityFilter

      eventList = format.getEventList(li);
      li.addLineListener(eventList);
    }

    // TODO move filtering to config and allow choices
    Filter filter = new PriorityFilter();
    LineIndex filteredIndex = new FilteredLineIndex(li, filter);
    models.add(filteredIndex);

    if (format.supportsRequests()) {
      requestIndex = format.getRequestIndex(li);
View Full Code Here

Examples of com.baulsupp.kolja.log.filter.PriorityFilter

  public ModelsCommand(LogFormat format, CharSequence buffer, Less less) {
    LineIndex li = format.getLineIndex(buffer);
    models.add(li);

    // TODO move filtering to config and allow choices
    Filter filter = new PriorityFilter();
    LineIndex filteredIndex = new FilteredLineIndex(li, filter);
    models.add(filteredIndex);

    less.setLineIndex(getNextLineModel());
  }
View Full Code Here

Examples of org.apache.log.filter.PriorityFilter

    public final LogTarget createTarget( final Configuration configuration )
        throws ConfigurationException
    {
        final String loglevel = configuration.getAttribute( "log-level", "INFO" );
        getLogger().debug( "loglevel is " + loglevel );
        final PriorityFilter filter = new PriorityFilter( Priority.getPriorityForName( loglevel ) );

        final Configuration[] configs = configuration.getChildren();
        for( int i = 0; i < configs.length; i++ )
        {
            final LogTargetFactory factory = m_logTargetFactoryManager.getLogTargetFactory( configs[ i ].getName() );

            if( null == factory )
            {
                throw new ConfigurationException( "Unknown target type '" + configs[ i ].getName()
                                                  + "' at " + configs[ i ].getLocation() );
            }

            getLogger().debug( "creating target " + configs[ i ].getName() + ": " + configs[ i ].toString() );
            final LogTarget logtarget = factory.createTarget( configs[ i ] );
            filter.addTarget( logtarget );
        }
        return filter;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.