mil.dod.th.ose.logging/src/mil/dod/th/ose/logging/LogWriter.java
private void processFiltersFromFrameworkProps()
    {
        boolean moreFilters = true;
        int filterCounter = 1;
        while (moreFilters)
        {
            //use counter to sequentially acquire the profiles !using post access incrementing!
            final String filter = m_Context.getProperty(LOG_BUNDLE_FILTER_PROFILE_PREFIX_PROPERTY + filterCounter++);
            //if null that means there are no more profiles defined
            if (filter == null)
            {
                moreFilters = false;
            }
            else
            {
                //create bundle filter
                final String[] splitFilter = filter.split(":");
                if (splitFilter.length != 2)
                {
                    //bad data
                    Logging.log(LogService.LOG_WARNING, "Invalid Log Filter: [%s]", filter);
                    continue;
                }
                final String symbolicNameFilter = splitFilter[0]; // split from config file entry
                final String severityLevel = splitFilter[1]; // split from config file entry
                final int logLevel;
                try
                {
                    logLevel = LogUtil.convertNativeToOsgiLevel(LogLevel.valueOf(severityLevel));
                }
                catch (final IllegalArgumentException e)
                {
                    //bad data
                    Logging.log(LogService.LOG_WARNING, "Invalid log log level within filter: [%s]", filter);
                    continue;
                }
                final LogFilter logFilter = createLogFilter(symbolicNameFilter, logLevel);
                m_LogFilterList.add(logFilter);
            }
        }
    }
/**
     * Read OSGi framework properties that begin with {@link #LOG_BUNDLE_FILTER_PROFILE_PREFIX_PROPERTY}. Add a filter
     * for each valid property found. A valid property value is "name:severity" where "name" is the bundler filter
     * expression and "severity" is the {@link LogLevel} string equivalent. 
     */
Read OSGi framework properties that begin with  #LOG_BUNDLE_FILTER_PROFILE_PREFIX_PROPERTY. Add a filter
for each valid property found.
Read OSGi framework properties that begin with #LOG_BUNDLE_FILTER_PROFILE_PREFIX_PROPERTY . Add a filter for each valid property found .
private void processFiltersFromFrameworkProps()
    {
        boolean moreFilters = true;
        int filterCounter = 1;
        while (moreFilters)
        {
            final String filter = m_Context.getProperty(LOG_BUNDLE_FILTER_PROFILE_PREFIX_PROPERTY + filterCounter++);
            if (filter == null)
            {
                moreFilters = false;
            }
            else
            {
                final String[] splitFilter = filter.split(":");
                if (splitFilter.length != 2)
                {
                    Logging.log(LogService.LOG_WARNING, "Invalid Log Filter: [%s]", filter);
                    continue;
                }
                final String symbolicNameFilter = splitFilter[0]; 
                final String severityLevel = splitFilter[1]; 
                final int logLevel;
                try
                {
                    logLevel = LogUtil.convertNativeToOsgiLevel(LogLevel.valueOf(severityLevel));
                }
                catch (final IllegalArgumentException e)
                {
                    Logging.log(LogService.LOG_WARNING, "Invalid log log level within filter: [%s]", filter);
                    continue;
                }
                final LogFilter logFilter = createLogFilter(symbolicNameFilter, logLevel);
                m_LogFilterList.add(logFilter);
            }
        }
    }
private void processFiltersFromFrameworkProps ( ) { boolean moreFilters = true ; int filterCounter = 1 ; while ( moreFilters ) { final String filter = m_Context . getProperty ( LOG_BUNDLE_FILTER_PROFILE_PREFIX_PROPERTY + filterCounter ++ ) ; if ( filter == null ) { moreFilters = false ; } else { final String [ ] splitFilter = filter . split ( ":" ) ; if ( splitFilter . length != 2 ) { Logging . log ( LogService . LOG_WARNING , "Invalid Log Filter: [%s]" , filter ) ; continue ; } final String symbolicNameFilter = splitFilter [ 0 ] ; final String severityLevel = splitFilter [ 1 ] ; final int logLevel ; try { logLevel = LogUtil . convertNativeToOsgiLevel ( LogLevel . valueOf ( severityLevel ) ) ; } catch ( final IllegalArgumentException e ) { Logging . log ( LogService . LOG_WARNING , "Invalid log log level within filter: [%s]" , filter ) ; continue ; } final LogFilter logFilter = createLogFilter ( symbolicNameFilter , logLevel ) ; m_LogFilterList . add ( logFilter ) ; } } }
Read OSGi framework properties that begin with {@link #LOG_BUNDLE_FILTER_PROFILE_PREFIX_PROPERTY}.
Read OSGi framework properties that begin with { @link #LOG_BUNDLE_FILTER_PROFILE_PREFIX_PROPERTY } .
//use counter to sequentially acquire the profiles !using post access incrementing! //if null that means there are no more profiles defined //create bundle filter //bad data // split from config file entry // split from config file entry //bad data