+ std::map<LogStream *, std::vector<std::string> >::iterator gi = GlobalLogStreams.find(l);
+ if (gi != GlobalLogStreams.end())
+ {
+ GlobalLogStreams.erase(gi);
+ }
+ std::map<LogStream*, int>::iterator ai = AllLogStreams.begin();
+ if (ai == AllLogStreams.end())
+ {
+ return; /* Done. */
+ }
+ delete ai->first;
+ AllLogStreams.erase(ai);
+}
+
+bool LogManager::DelLogType(const std::string &type, LogStream *l)
+{
+ std::map<std::string, std::vector<LogStream *> >::iterator i = LogStreams.find(type);
+ if (type == "*")
+ {
+ std::map<LogStream *, std::vector<std::string> >::iterator gi = GlobalLogStreams.find(l);
+ if (gi != GlobalLogStreams.end()) GlobalLogStreams.erase(gi);
+ }