| 188 | |
| 189 | |
| 190 | void EventProcessor::PrintEvent(nlohmann::json j) { |
| 191 | // Output accordingly |
| 192 | if (g_Config.hide_full_output) { |
| 193 | if (event_count >= 100) { |
| 194 | if (event_count % 100 == 0) { |
| 195 | std::cout << "O"; |
| 196 | } |
| 197 | } |
| 198 | else if (event_count >= 10) { |
| 199 | if (event_count % 10 == 0) { |
| 200 | std::cout << "o"; |
| 201 | } |
| 202 | } |
| 203 | else { |
| 204 | std::cout << "."; |
| 205 | } |
| 206 | } |
| 207 | else { |
| 208 | std::cout << j.dump() << "\n"; |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | |
| 213 | void EventProcessor::EventStats(nlohmann::json& j) { |