added location info into the log_parsing output. Now when the access logs are parsed, the geo_data is now included in the p_logs print function for each entry.

This commit is contained in:
rapturate
2026-06-08 14:25:11 -04:00
parent 1a129a5999
commit bdaf8451a0
6 changed files with 41 additions and 18 deletions

View File

@@ -12,9 +12,11 @@
#pragma once
#include <string>
#include <vector>
#include "../ip_to_geo/ip_to_geo.hpp"
struct Entry {
std::string ip;
loc_data location;
std::string timestamp;
std::string request;
std::string status;
@@ -100,7 +102,14 @@ public:
* @return std::string
*/
std::string entryx_browser(int);
/**
* @brief Getter function for a specific Entry's location info.
*
* @return loc_data
*/
loc_data entryx_location(int);
/**
* @brief Prints all parsed log entries
*