30 using std::ostringstream;
57 cerr <<
"Failed to set LogItInstance with NULL remoteInstance. Ignoring (and returning false)" << endl;
63 cerr <<
"Failed to set LogItInstance with remoteInstance ["<<remoteInstance<<
"], already have incumbent instance ["<<
getInstance()<<
"]. Ignoring (and returning false)" << endl;
74 cerr <<
"Failed to create new LogItInstance, already have instance ["<<
getInstance()<<
"]. Ignoring (and returning instance)" << endl;
95 return *componentAttributes;
100 msg << __FUNCTION__<<
" FAILED: logging component ["<<componentName<<
"] has handle ["<<existingComponentHandle<<
"], but no attributes found. Probably a programming error. Current entry count ["<<
m_components.size()<<
"]";
101 throw std::runtime_error(msg.str());
109 msg << __FUNCTION__<<
" FAILED: cannot add logging component ["<<componentName<<
"] to components list, the list is full (entry count ["<<
m_components.size()<<
"])";
110 throw std::runtime_error(msg.str());
119 newComponentNames->emplace(componentName, newComponentHandle);
127 if(componentHandle >=
m_components.size())
return false;
138 componentHandle = it->second;
147 map<Log::LogComponentHandle, string> result;