-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✍️ 📥 initial backend logging support (#28)
minimal poc linux only server logging * parent f6712ed author Chris McArthur <[email protected]> 1606357445 -0500 committer Chris McArthur <[email protected]> 1607133653 -0500 refactor how server header is populated now it generated in one place little fancy on the cmake with private features, requires C++ 17 compiler, conanfile needs conan-io/conan#8002⚠️ do not update lockfile! add version and settings when making locks avoiding funky namespace declaraiton error * adding cmake option to configure logging method * fail bad logging options * add logging option to conan file * make sure to pass option list correctly * initial pass for user databse logging * fixing database logger * [refactor] logger to be more generic * add missing keyword for cmake * adding logging to the main handlers * build debug console logging for quick testing! * fix bad value
- Loading branch information
1 parent
f6712ed
commit b341fe6
Showing
29 changed files
with
392 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
function(OPTIONS NAME VALUE DESC CHOICES) | ||
set(${NAME} ${VALUE} CACHE STRING "${DESC}") | ||
set_property(CACHE ${NAME} PROPERTY STRINGS ${CHOICES}) | ||
|
||
if(NOT ${NAME} IN_LIST CHOICES) | ||
message(FATAL_ERROR "${NAME}=${${NAME}} must be one of ${CHOICES}!") | ||
endif() | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
add_subdirectory("logging") # Needs to be first | ||
add_subdirectory("database") | ||
add_subdirectory("handlers") | ||
add_subdirectory("utility") | ||
|
||
add_executable(user_database_app "main.cpp") | ||
target_link_libraries(user_database_app user_routes serve_files web_app app_args) | ||
target_link_libraries(user_database_app PRIVATE user_routes serve_files web_app app_args server_logger) | ||
|
||
if(${RUN_TIDY}) | ||
include("clang-tidy") | ||
if(RUN_TIDY) | ||
setup_clang_tidy(user_database_app) | ||
|
||
include("clang-format") | ||
setup_clang_format(user_database_app) | ||
|
||
include("cmake-format") | ||
setup_cmake_format(src "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt") | ||
setup_cmake_format(src ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
find_package(OpenSSL REQUIRED) | ||
find_package(OpenSSL 1.1.1 REQUIRED) | ||
|
||
add_library(encoders "sha256.hpp" "sha256.cpp" "base64.hpp" "base64.cpp") | ||
target_include_directories(encoders PUBLIC "..") | ||
set_target_properties(encoders PROPERTIES LINKER_LANGUAGE CXX) | ||
target_link_libraries(encoders PUBLIC OpenSSL::OpenSSL) | ||
target_link_libraries(encoders PRIVATE OpenSSL::OpenSSL) | ||
|
||
if(${RUN_TIDY}) | ||
include("clang-tidy") | ||
if(RUN_TIDY) | ||
setup_clang_tidy(encoders) | ||
|
||
include("clang-format") | ||
setup_clang_format(encoders) | ||
|
||
include("cmake-format") | ||
setup_cmake_format(encoders "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt") | ||
setup_cmake_format(encoders ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.