development/Common/Utility/source/LoggerCpp/Manager.cpp
// Set the Log::Level of Channel objects from the provided Config instance

Set the Log::Level of Channel objects from the provided Config instance
Set the Log :: Level of Channel objects from the provided Config instance
void yaget::ylog::Manager::setChannelConfig(const ylog::Config::Ptr& aConfigPtr)
{
    const Config::Values& ConfigValues = aConfigPtr->getValues();
    for (auto iValue = ConfigValues.begin(); iValue != ConfigValues.end(); ++iValue)
    {
        Manager::get(iValue->first.c_str())->setLevel(Log::toLevel(iValue->second.c_str()));
    }
}
void yaget :: ylog :: Manager :: setChannelConfig ( const ylog :: Config :: Ptr & aConfigPtr ) { const Config :: Values & ConfigValues = aConfigPtr -> getValues ( ) ; for ( auto iValue = ConfigValues . begin ( ) ; iValue != ConfigValues . end ( ) ; ++ iValue ) { Manager :: get ( iValue -> first . c_str ( ) ) -> setLevel ( Log :: toLevel ( iValue -> second . c_str ( ) ) ) ; } }
Set the Log::Level of Channel objects from the provided Config instance
Set the Log :: Level of Channel objects from the provided Config instance