mil.dod.th.ose.logging/src/mil/dod/th/ose/logging/LogWriter.java
private LogFilter createLogFilter(final String symName, final int severity)
    {
        return new LogFilter()
        {
            @Override
            public boolean matches(final Bundle bundle)
            {
                return bundle.getSymbolicName().matches(symName);
            }
            
            @Override
            public int getSeverity()
            {
                return severity;
            }
        };
    }
/**
     * Create a Log Filter with the given sym name and severity.
     * @param symName
     *      the symbolic name regex to be used for this log filter
     * @param severity
     *      the severity level as a string, will be translated into integer level during
     *      construction of instance
     * @return
     *      instance of a log filter
     */
Create a Log Filter with the given sym name and severity.
@param symName
the symbolic name regex to be used for this log filter
@param severity
the severity level as a string, will be translated into integer level during
construction of instance
@return
instance of a log filter
Create a Log Filter with the given sym name and severity . @param symName the symbolic name regex to be used for this log filter @param severity the severity level as a string will be translated into integer level during construction of instance @return instance of a log filter
private LogFilter createLogFilter(final String symName, final int severity)
    {
        return new LogFilter()
        {
            @Override
            public boolean matches(final Bundle bundle)
            {
                return bundle.getSymbolicName().matches(symName);
            }
            @Override
            public int getSeverity()
            {
                return severity;
            }
        };
    }
private LogFilter createLogFilter ( final String symName , final int severity ) { return new LogFilter ( ) { @ Override public boolean matches ( final Bundle bundle ) { return bundle . getSymbolicName ( ) . matches ( symName ) ; } @ Override public int getSeverity ( ) { return severity ; } } ; }
Create a Log Filter with the given sym name and severity.
Create a Log Filter with the given sym name and severity .