aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
commitb4cb34dfb2619f594d82e512fd9ff7fc97400133 (patch)
tree6a64ab25a145265287789bceed3f59e953561206 /library/cpp/logger
parent5e837a820d5be0671fa4096a1cc1e378453e5132 (diff)
downloadydb-b4cb34dfb2619f594d82e512fd9ff7fc97400133.tar.gz
intermediate changes
ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
Diffstat (limited to 'library/cpp/logger')
-rw-r--r--library/cpp/logger/CMakeLists.txt41
-rw-r--r--library/cpp/logger/global/CMakeLists.txt11
2 files changed, 52 insertions, 0 deletions
diff --git a/library/cpp/logger/CMakeLists.txt b/library/cpp/logger/CMakeLists.txt
new file mode 100644
index 0000000000..ec1123d507
--- /dev/null
+++ b/library/cpp/logger/CMakeLists.txt
@@ -0,0 +1,41 @@
+add_library(library-cpp-logger)
+target_link_libraries(library-cpp-logger PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ tools-enum_parser-enum_serialization_runtime
+ library-cpp-json
+)
+target_sources(library-cpp-logger PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/backend.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/backend_creator.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/composite.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/element.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/file.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/filter.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/filter_creator.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/log.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/null.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/rotating_file.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/stream.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/sync_page_cache_file.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/system.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/thread.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/thread_creator.cpp
+)
+generate_enum_serilization(library-cpp-logger
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/priority.h
+ INCLUDE_HEADERS
+ library/cpp/logger/priority.h
+)
+
+add_global_library_for(library-cpp-logger.global library-cpp-logger)
+target_sources(library-cpp-logger.global PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/composite_creator.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/file_creator.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/null_creator.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/rotating_file_creator.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/stream_creator.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/sync_page_cache_file_creator.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/system_creator.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/uninitialized_creator.cpp
+)
diff --git a/library/cpp/logger/global/CMakeLists.txt b/library/cpp/logger/global/CMakeLists.txt
new file mode 100644
index 0000000000..5deeaea6f5
--- /dev/null
+++ b/library/cpp/logger/global/CMakeLists.txt
@@ -0,0 +1,11 @@
+add_library(cpp-logger-global)
+target_link_libraries(cpp-logger-global PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ library-cpp-logger
+)
+target_sources(cpp-logger-global PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/global/common.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/global/global.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/logger/global/rty_formater.cpp
+)