| 27 | REGISTER_STATSFUNCTION(CompatLogger, &CompatLogger::StatsFunc); |
| 28 | |
| 29 | void CompatLogger::StatsFunc(const Dictionary::Ptr& status, const Array::Ptr&) |
| 30 | { |
| 31 | DictionaryData nodes; |
| 32 | |
| 33 | for (const CompatLogger::Ptr& compat_logger : ConfigType::GetObjectsByType<CompatLogger>()) { |
| 34 | nodes.emplace_back(compat_logger->GetName(), 1); // add more stats |
| 35 | } |
| 36 | |
| 37 | status->Set("compatlogger", new Dictionary(std::move(nodes))); |
| 38 | } |
| 39 | |
| 40 | void CompatLogger::OnAllConfigLoaded() |
| 41 | { |