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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user