mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-14 19:13:49 +01:00
52959b91da
* sample(DBLogger): New sample to demonstrate DB logging to a file. (#4750) * sample(DBLogger): Create messages via SQL logger in a thread (#4750) * sample(DBLogger): Save messages from SQL files to an SQL database (works with SQLite) (#4750) * chore(Makefile): Data samples depend on PocoUtil (#4750) * sample(DBLogger): Refactored DBLogger with std::filesystem::directory_iterator and std::thread. * sample(DBLogger): Add missing include <condition_variable> * sample(DBLogger): Extracted log scanning and inserting functionality to class SQLLogInserter. * sample(DBLogger): Create new logging table only when using demo messages option. * feat(DBLogger): VS projects * sample(DBLogger): Acquire options from configuration file. * feat(DBLogger): regenerate VS projects (progen file change) * sample(DBLogger): Add example DBLogger.properties file. * sample(DBLogger): Process as much as possible when stopping processing. * sample(DBLogger): Meaningful defaults in properties file. * sample(DBLogger): Verify validity of database session on startup. * sample(DBLogger): Configure demo SQL channel in properties file. * chore(DBLogger): style and warnings --------- Co-authored-by: Aleksandar Fabijanic <aleks-f@users.noreply.github.com> Co-authored-by: Alex Fabijanic <alex@pocoproject.org>
15 lines
353 B
CMake
15 lines
353 B
CMake
|
|
# Sources
|
|
file(GLOB SRCS_G "src/*.cpp")
|
|
POCO_SOURCES_AUTO(DBLOGGER_SRCS ${SRCS_G})
|
|
|
|
# Headers
|
|
file(GLOB_RECURSE HDRS_G "src/*.h")
|
|
POCO_HEADERS_AUTO(DBLOGGER_SRCS ${HDRS_G})
|
|
|
|
add_executable(DBLogger ${DBLOGGER_SRCS})
|
|
|
|
target_link_libraries(DBLogger PUBLIC Poco::Util Poco::DataSQLite)
|
|
|
|
add_custom_target(DBLogger-properties SOURCES DBLogger.properties)
|