development/Common/Utility/source/LoggerCpp/Manager.cpp
// Create and configure the Output objects.

Create and configure the Output objects.
Create and configure the Output objects .
void yaget::ylog::Manager::configure(const Config::Vector& aConfigList)
{
    auto& d = md();
    d.mOutputList.clear();
    const ManagerData::OutputTypes& registeredOutputs = d.mRegisteredOutputTypes;
    for (auto&& it : aConfigList)
    {
        const std::string& configName = it->getName();
        for (auto&& f : registeredOutputs)
        {
            if (f.first.find(configName) != std::string::npos)
            {
                Output::Ptr outputPtr(f.second(it));
                d.mOutputList.push_back(outputPtr);
                break;
            }
        }
    }
}
void yaget :: ylog :: Manager :: configure ( const Config :: Vector & aConfigList ) { auto & d = md ( ) ; d . mOutputList . clear ( ) ; const ManagerData :: OutputTypes & registeredOutputs = d . mRegisteredOutputTypes ; for ( auto && it : aConfigList ) { const std :: string & configName = it -> getName ( ) ; for ( auto && f : registeredOutputs ) { if ( f . first . find ( configName ) != std :: string :: npos ) { Output :: Ptr outputPtr ( f . second ( it ) ) ; d . mOutputList . push_back ( outputPtr ) ; break ; } } } }
Create and configure the Output objects.
Create and configure the Output objects .