Wrote the print_logs funciton for debugging and changed the location of the test .log files

This commit is contained in:
2026-05-29 10:45:11 -04:00
parent 9105718e56
commit 46e8048e14
6 changed files with 42 additions and 18 deletions

View File

@@ -24,7 +24,7 @@ struct Entry {
std::string browser;
};
class parsed_logs {
class p_logs {
private:
Entry entry;
std::vector<Entry> logs;
@@ -35,7 +35,7 @@ public:
* Detailed explanation: This function takes in the absolute path to a .log file and parses the lines into individual "Entry"s. These Entrys are then stored into a vector that can then be accessed via getter functions.
* @param string
*/
parsed_logs(std::string);
p_logs(std::string);
/**
* @brief Getter function for a specific Entry's IP
@@ -100,4 +100,10 @@ public:
* @return std::string
*/
std::string entryx_browser(int);
/**
* @brief Prints all parsed log entries
*
*/
void print_logs();
};