private static ContextProvider createContextProvider ( final Collection < LoggingProvider > loggingProviders ) { Collection < ContextProvider > contextProviders = new ArrayList < ContextProvider > ( loggingProviders . size ( ) ) ; for ( LoggingProvider loggingProvider : loggingProviders ) { contextProviders . add ( loggingProvider . getContextProvider ( ) ) ; } return new BundleContextProvider ( contextProviders ) ; }
Gets all context providers from given logging providers and combine them into a new one .