Created a .gitignore

This commit is contained in:
rapturate
2026-06-03 15:59:12 -04:00
parent 1dab3ac7b7
commit 19898abd57
4 changed files with 50 additions and 2 deletions

43
.gitignore vendored Normal file
View File

@@ -0,0 +1,43 @@
# CMake and Build Directories
# Ignores all variation of build folders (build, build_ninja, build-release, etc.)
[Bb]uild*/
cmake-build-*/
# Ignore CMake generated artifacts if they accidentally land in the root
CMakeCache.txt
CMakeFiles/
CMakeSettings.json
CMakeUserPresets.json
generated/
# Ignore generic compiled outputs
*.o
*.obj
*.a
*.lib
*.so
*.dylib
*.dll
*.exe
# ==========================================
# Language Server & IDE Support (Arch Linux / Dev Tools)
# ==========================================
# Compiled commands file generated by set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# (Your LSP uses this, but it is regenerated per-machine and shouldn't be committed)
compile_commands.json
# Text editors and IDEs
.vscode/
.idea/
*.swp
*~
.clangd/
.cache/
# ==========================================
# Databases and Logs (Specific to your project)
# ==========================================
# If you download large MaxMind .mmdb files, ignore them so they don't bloat Git
*.mmdb
*.log

View File

@@ -14,6 +14,9 @@ add_executable(parselog_cli
third_party/src/GeoLite2PP_error_category.cpp
)
enable_testing()
add_test(NAME LogParser COMMAND parselog_cli)
target_include_directories(parselog_cli PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/log_parsing
${CMAKE_CURRENT_SOURCE_DIR}/ip_to_geo

View File

@@ -6,6 +6,7 @@
#include <regex>
#include "log_parsing.hpp"
#include "ip_to_geo.hpp"
p_logs::p_logs(std::string log_path) {

View File

@@ -2,8 +2,9 @@
#include "ip_to_geo/ip_to_geo.hpp"
#include <iostream>
int main(){
// p_logs logs("C:\\Users\\lewis\\Desktop\\Code\\parselog_cli\\test_logs\\access.log");
// logs.print_logs();
p_logs logs("C:\\Users\\lewis\\Desktop\\Code\\parselog_cli\\test_logs\\access.log");
logs.print_logs();
std::string ip = "69.132.83.110";
std::cout << iplookup(ip);