diff --git a/AGENTS.md b/AGENTS.md index 42bb0f2..e923ea7 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -3,7 +3,7 @@ ## Header inclusion This project provides dedicated entry-point headers that include internal dependencies in the correct order. Use these headers instead of forward-declaring library types. -* `include/logit_cpp/LogIt.hpp` – main entry for the entire library. +* `include/logit_cpp/logit.hpp` – main entry for the entire library. * `include/logit_cpp/logit/utils.hpp` – aggregates the utilities module. Including through these headers ensures dependencies are resolved without manual forward declarations. @@ -16,3 +16,9 @@ Include a body that describes the change. ## Changes Keep diffs minimal and focused. Do not refactor or apply style changes beyond the lines you directly touch. + +## Header naming conventions +When adding or renaming headers, follow these rules: + +* If the file defines a single primary class (with optional supporting enums or helper functions dedicated to that class), use a PascalCase filename. +* If the file hosts multiple classes, macros, free functions, or otherwise represents a mixed collection of declarations, use a snake_case filename. diff --git a/README-RU.md b/README-RU.md index 40b567d..4c80a21 100644 --- a/README-RU.md +++ b/README-RU.md @@ -7,7 +7,7 @@ Ключевые особенности: -- **Макро-ориентированный API.** Единые семейства макросов (`LOGIT_`, `LOGIT_PRINTF_`, `LOGIT_STREAM_` и др.) покрывают мгновенные сообщения, форматирование в стиле `printf`, потоковый вывод, ограничения частоты и работу с тегами. Определите `LOGIT_SHORT_NAME` перед подключением ``, чтобы включить компактные алиасы `LOG_I`, `LOG_WPF`, `LOG_S_INFO` и другие. +- **Макро-ориентированный API.** Единые семейства макросов (`LOGIT_`, `LOGIT_PRINTF_`, `LOGIT_STREAM_` и др.) покрывают мгновенные сообщения, форматирование в стиле `printf`, потоковый вывод, ограничения частоты и работу с тегами. Определите `LOGIT_SHORT_NAME` перед подключением ``, чтобы включить компактные алиасы `LOG_I`, `LOG_WPF`, `LOG_S_INFO` и другие. - **Гибкое форматирование и маршрутизация.** Настраивайте шаблоны формата, комбинируйте консольные/файловые/системные бэкенды или подключайте собственные реализации логгеров. - **Асинхронность по умолчанию.** Каждый бэкенд обслуживается исполнителем задач с настраиваемыми размерами очереди и политиками переполнения, а макросы вроде `LOGIT_WARN_ONCE` или `LOGIT_ERROR_THROTTLE` помогают упорядочить повторяющиеся сообщения. @@ -18,7 +18,7 @@ ### Полные макросы ```cpp -#include +#include int main() { LOGIT_ADD_CONSOLE_DEFAULT(); @@ -46,11 +46,11 @@ int main() { ### Короткие алиасы -Определите `LOGIT_SHORT_NAME` перед подключением ``, чтобы использовать односимвольные префиксы уровней: +Определите `LOGIT_SHORT_NAME` перед подключением ``, чтобы использовать односимвольные префиксы уровней: ```cpp #define LOGIT_SHORT_NAME -#include +#include void short_names_demo() { LOGIT_ADD_CONSOLE_DEFAULT(); // вызывайте один раз при инициализации @@ -72,7 +72,7 @@ void short_names_demo() { `LOGIT_SYSERR_` захватывает текущее значение `errno` (или `GetLastError()` в Windows) и добавляет расшифровку ошибки к исходному сообщению, чтобы в логе оставался как контекст, так и код сбоя. При необходимости можно явно выбрать платформу через `LOGIT_PERROR_` или `LOGIT_WINERR_`. ```cpp -#include +#include #include int main() { @@ -92,7 +92,7 @@ int main() { #define LOGIT_OS_ERROR_JOIN " <- " #define LOGIT_POSIX_ERROR_PATTERN "[%s] errno=%d (%s)" #define LOGIT_WINDOWS_ERROR_PATTERN "[%s] GetLastError=%lu (%s)" -#include +#include // ... далее в коде ... LOGIT_SYSERR_ERROR("Ошибка удаления временного каталога"); @@ -258,7 +258,7 @@ LOGIT_ADD_LOGGER(CustomLogger, (), logit::SimpleLogFormatter, ("%v")); ```cpp #define LOGIT_SHORT_NAME -#include +#include int main() { LOGIT_ADD_CONSOLE_DEFAULT(); @@ -569,7 +569,7 @@ LogIt++ предоставляет несколько макросов, кото ```cpp #include #include -#include +#include class FileLogger : public logit::ILogger { public: @@ -602,7 +602,7 @@ private: ### Пример пользовательского форматтера ```cpp -#include +#include #include class JsonLogFormatter : public logit::ILogFormatter { @@ -636,7 +636,7 @@ git clone --recurse-submodules https://github.com/NewYaroslav/log-it-cpp.git 2. Включите заголовочные файлы LogIt++ в ваш проект: ```cpp -#include +#include ``` 3. Настройте пути к заголовочным файлам для зависимостей, таких как time-shield-cpp. diff --git a/README.md b/README.md index ba989e3..2d18371 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Key characteristics: -- **Macro-oriented API.** Consistent macro families (`LOGIT_`, `LOGIT_PRINTF_`, `LOGIT_STREAM_`, etc.) cover immediate messages, printf-style formatting, streaming, throttling, and tagging. Defining `LOGIT_SHORT_NAME` when including `` enables compact aliases like `LOG_I`, `LOG_WPF`, and `LOG_S_INFO`. +- **Macro-oriented API.** Consistent macro families (`LOGIT_`, `LOGIT_PRINTF_`, `LOGIT_STREAM_`, etc.) cover immediate messages, printf-style formatting, streaming, throttling, and tagging. Defining `LOGIT_SHORT_NAME` when including `` enables compact aliases like `LOG_I`, `LOG_WPF`, and `LOG_S_INFO`. - **Flexible formatting and routing.** Customize output patterns, mix console/file/system backends, or supply custom logger implementations. - **Async by default.** Each backend is served by the task executor with configurable queue sizes and overflow policies, plus helpers such as `LOGIT_WARN_ONCE` or `LOGIT_ERROR_THROTTLE` to keep repeated messages under control. @@ -27,7 +27,7 @@ See the macro examples below or browse the `examples/` folder for focused demons ### Long-form macros ```cpp -#include +#include int main() { LOGIT_ADD_CONSOLE_DEFAULT(); @@ -55,11 +55,11 @@ int main() { ### Short aliases -Define `LOGIT_SHORT_NAME` before including `` to enable single-letter level prefixes: +Define `LOGIT_SHORT_NAME` before including `` to enable single-letter level prefixes: ```cpp #define LOGIT_SHORT_NAME -#include +#include void short_names_demo() { LOGIT_ADD_CONSOLE_DEFAULT(); // call once during initialization @@ -81,7 +81,7 @@ For a standalone program that brings everything together and intentionally abort `LOGIT_SYSERR_` captures the current `errno` (or `GetLastError()` on Windows) and appends the decoded information to the message, so failure details stay attached to the original context. The lower-level `LOGIT_PERROR_` and `LOGIT_WINERR_` families are also available if you want to explicitly choose the platform macro. ```cpp -#include +#include #include int main() { @@ -101,7 +101,7 @@ The error suffix can be customised at compile time via `config.hpp` macros: #define LOGIT_OS_ERROR_JOIN " <- " #define LOGIT_POSIX_ERROR_PATTERN "[%s] errno=%d (%s)" #define LOGIT_WINDOWS_ERROR_PATTERN "[%s] GetLastError=%lu (%s)" -#include +#include // ... later in the code ... LOGIT_SYSERR_ERROR("Deleting temp directory failed"); @@ -232,7 +232,7 @@ Here’s a simple example demonstrating how to use LogIt++ in your application. ```cpp #define LOGIT_SHORT_NAME -#include +#include int main() { // Initialize the logger with default console output @@ -545,7 +545,7 @@ You can extend LogIt++ by implementing your own loggers and formatters. Here’s ```cpp #include #include -#include +#include class FileLogger : public logit::ILogger { public: @@ -578,7 +578,7 @@ private: ### Custom Formatter Example ```cpp -#include +#include #include class JsonLogFormatter : public logit::ILogFormatter { @@ -662,7 +662,7 @@ git clone --recurse-submodules https://github.com/NewYaroslav/log-it-cpp.git 2. Include the LogIt++ headers in your project: ```cpp -#include +#include ``` 3. Set up include paths for dependencies like time-shield-cpp. diff --git a/docs/groups.dox b/docs/groups.dox index f5464a8..14d4c72 100644 --- a/docs/groups.dox +++ b/docs/groups.dox @@ -38,7 +38,7 @@ if (fd == -1) { \endcode Customise the suffix by overriding configuration macros such as `LOGIT_OS_ERROR_JOIN`, `LOGIT_POSIX_ERROR_PATTERN`, or `LOGIT_WINDOWS_ERROR_PATTERN` -before including ``. +before including ``. \par Logger Management \code diff --git a/docs/mainpage.dox b/docs/mainpage.dox index 32a0840..c8b565e 100644 --- a/docs/mainpage.dox +++ b/docs/mainpage.dox @@ -9,7 +9,7 @@ Version: VERSION_PLACEHOLDER Key characteristics: -- **Macro-oriented API.** Consistent macro families (`LOGIT_`, `LOGIT_PRINTF_`, `LOGIT_STREAM_`, etc.) cover immediate messages, `printf`-style formatting, streaming, throttling, and tagging. Defining `LOGIT_SHORT_NAME` when including `` enables compact aliases like `LOG_I`, `LOG_WPF`, and `LOG_S_INFO`. +- **Macro-oriented API.** Consistent macro families (`LOGIT_`, `LOGIT_PRINTF_`, `LOGIT_STREAM_`, etc.) cover immediate messages, `printf`-style formatting, streaming, throttling, and tagging. Defining `LOGIT_SHORT_NAME` when including `` enables compact aliases like `LOG_I`, `LOG_WPF`, and `LOG_S_INFO`. - **Flexible formatting and routing.** Customize output patterns, mix console/file/system backends, or supply custom logger implementations. - **Async by default.** Each backend is served by the task executor with configurable queue sizes and overflow policies, plus helpers such as `LOGIT_WARN_ONCE` or `LOGIT_ERROR_THROTTLE` to keep repeated messages under control. @@ -20,7 +20,7 @@ See the macro examples below or browse the `examples/` directory for focused dem \subsection macro_examples_long Long-form macros \code{.cpp} -#include +#include int main() { LOGIT_ADD_CONSOLE_DEFAULT(); @@ -48,11 +48,11 @@ int main() { \subsection macro_examples_short Short aliases -Define `LOGIT_SHORT_NAME` before including `` to enable single-letter level prefixes: +Define `LOGIT_SHORT_NAME` before including `` to enable single-letter level prefixes: \code{.cpp} #define LOGIT_SHORT_NAME -#include +#include void short_names_demo() { LOGIT_ADD_CONSOLE_DEFAULT(); // call once during initialization @@ -177,7 +177,7 @@ Here's a simple example demonstrating how to use LogIt++ in your application: \code{.cpp} #define LOGIT_SHORT_NAME -#include +#include int main() { // Initialize the logger with default console output @@ -521,7 +521,7 @@ To create a custom logger backend, you need to implement the `ILogger` interface \code{.cpp} #include #include -#include +#include class FileLogger : public logit::ILogger { public: @@ -575,7 +575,7 @@ logit::Logger::get_instance().add_logger( In addition to creating custom loggers, you can also create custom formatters by implementing the `ILogFormatter` interface. Here's an example of a simple formatter that outputs log messages in JSON format: \code{.cpp} -#include +#include #include // Or your preferred JSON library class JsonLogFormatter : public logit::ILogFormatter { @@ -646,7 +646,7 @@ git submodule update Since LogIt++ is a header-only library, you can simply include the main header in your project: \code{cpp} -#include +#include \endcode This will give you access to the entire logging system. diff --git a/examples/example_logit_basic.cpp b/examples/example_logit_basic.cpp index ac4188b..a0d53af 100644 --- a/examples/example_logit_basic.cpp +++ b/examples/example_logit_basic.cpp @@ -5,8 +5,17 @@ #include #include -#include -#include +#include + +namespace { + +void log_depth_fixture() +{ + LOGIT_TRACE0(); + LOGIT_TRACE("This is an informational message"); +} + +} // namespace // Example enumeration enum class COLORS { @@ -77,7 +86,7 @@ int main() { LOGIT_SET_MAX_QUEUE(64); LOGIT_SET_QUEUE_POLICY(LOGIT_QUEUE_DROP); - logit::test_log_depth_3(); + log_depth_fixture(); LOGIT_TRACE0(); diff --git a/examples/example_logit_compression.cpp b/examples/example_logit_compression.cpp index 2fae2de..6e646e6 100644 --- a/examples/example_logit_compression.cpp +++ b/examples/example_logit_compression.cpp @@ -1,7 +1,7 @@ /// \file example_logit_compression.cpp /// \brief Demonstrates file log compression using gzip. -#include +#include int main() { logit::FileLogger::Config cfg; diff --git a/examples/example_logit_custom_backend.cpp b/examples/example_logit_custom_backend.cpp index ac8375e..053d479 100644 --- a/examples/example_logit_custom_backend.cpp +++ b/examples/example_logit_custom_backend.cpp @@ -2,7 +2,7 @@ #include #include -#include +#include /// \cond diff --git a/examples/example_logit_customized.cpp b/examples/example_logit_customized.cpp index 74d10f9..3e2e896 100644 --- a/examples/example_logit_customized.cpp +++ b/examples/example_logit_customized.cpp @@ -6,7 +6,7 @@ #define LOGIT_UNIQUE_FILE_LOGGER_PATH "E:\\logs\\unique_logs" // Custom path for unique file logger #define LOGIT_FILE_LOGGER_AUTO_DELETE_DAYS 10 // Auto-delete logs older than 10 days -#include +#include #include #include diff --git a/examples/example_logit_minimal_crash.cpp b/examples/example_logit_minimal_crash.cpp index b0f4204..63a6cd5 100644 --- a/examples/example_logit_minimal_crash.cpp +++ b/examples/example_logit_minimal_crash.cpp @@ -4,7 +4,7 @@ #include #define LOGIT_SHORT_NAME -#include +#include namespace { diff --git a/examples/example_logit_queue_limit.cpp b/examples/example_logit_queue_limit.cpp index b4a1a20..87119c1 100644 --- a/examples/example_logit_queue_limit.cpp +++ b/examples/example_logit_queue_limit.cpp @@ -1,7 +1,7 @@ /// \file example_logit_queue_limit.cpp /// \brief Shows how to limit the log queue size. -#include +#include int main() { LOGIT_ADD_CONSOLE_DEFAULT(); diff --git a/examples/example_logit_short_macros.cpp b/examples/example_logit_short_macros.cpp index 33cc0a2..67a1c34 100644 --- a/examples/example_logit_short_macros.cpp +++ b/examples/example_logit_short_macros.cpp @@ -2,7 +2,7 @@ #define LOGIT_SHORT_NAME // Enable short macros #include -#include +#include #define UNIQUE_LOGGER_ID 2 diff --git a/examples/example_logit_system_logger.cpp b/examples/example_logit_system_logger.cpp index 602fc74..378f34b 100644 --- a/examples/example_logit_system_logger.cpp +++ b/examples/example_logit_system_logger.cpp @@ -1,7 +1,7 @@ /// \file example_logit_system_logger.cpp /// \brief Demonstrates usage of the cross-platform SystemLogger. -#include +#include int main() { LOGIT_ADD_LOGGER(logit::SystemLogger, (), logit::SimpleLogFormatter, (LOGIT_CONSOLE_PATTERN)); diff --git a/include/logit_cpp/LogIt.hpp b/include/logit_cpp/logit.hpp similarity index 74% rename from include/logit_cpp/LogIt.hpp rename to include/logit_cpp/logit.hpp index 505365a..e84f68b 100644 --- a/include/logit_cpp/LogIt.hpp +++ b/include/logit_cpp/logit.hpp @@ -1,8 +1,8 @@ #pragma once -#ifndef _LOGIT_HPP_INCLUDED -#define _LOGIT_HPP_INCLUDED +#ifndef LOGIT_CPP_LOGIT_HPP +#define LOGIT_CPP_LOGIT_HPP -/// \file LogIt.hpp +/// \file logit.hpp /// \brief Main header file for the LogIt++ library. #include "logit/config.hpp" @@ -11,7 +11,7 @@ #include "logit/Logger.hpp" #include "logit/LogStream.hpp" #include "logit/detail/ScopeTimer.hpp" -#include "logit/LogMacros.hpp" +#include "logit/log_macros.hpp" #include "logit/formatter.hpp" #include "logit/loggers.hpp" @@ -19,4 +19,4 @@ /// \brief The primary namespace for the LogIt++ library. namespace logit {}; -#endif // _LOGIT_HPP_INCLUDED +#endif // LOGIT_CPP_LOGIT_HPP diff --git a/include/logit_cpp/logit/detail/SystemErrorMacros.hpp b/include/logit_cpp/logit/detail/system_error_macros.hpp similarity index 94% rename from include/logit_cpp/logit/detail/SystemErrorMacros.hpp rename to include/logit_cpp/logit/detail/system_error_macros.hpp index 6f73af9..9d25a09 100644 --- a/include/logit_cpp/logit/detail/SystemErrorMacros.hpp +++ b/include/logit_cpp/logit/detail/system_error_macros.hpp @@ -1,12 +1,12 @@ #pragma once -#ifndef _LOGIT_DETAIL_SYSTEM_ERROR_MACROS_HPP_INCLUDED -#define _LOGIT_DETAIL_SYSTEM_ERROR_MACROS_HPP_INCLUDED +#ifndef LOGIT_DETAIL_SYSTEM_ERROR_MACROS_HPP_INCLUDED +#define LOGIT_DETAIL_SYSTEM_ERROR_MACROS_HPP_INCLUDED #include #include #include -/// \file SystemErrorMacros.hpp +/// \file system_error_macros.hpp /// \brief Internal helpers shared by the system error logging macros. #include "../config.hpp" @@ -82,4 +82,4 @@ inline std::string _logit_format_winerr(DWORD code) { #endif // defined(_WIN32) -#endif // _LOGIT_DETAIL_SYSTEM_ERROR_MACROS_HPP_INCLUDED +#endif // LOGIT_DETAIL_SYSTEM_ERROR_MACROS_HPP_INCLUDED diff --git a/include/logit_cpp/logit/LogMacros.hpp b/include/logit_cpp/logit/log_macros.hpp similarity index 99% rename from include/logit_cpp/logit/LogMacros.hpp rename to include/logit_cpp/logit/log_macros.hpp index 002a0df..77cae6b 100644 --- a/include/logit_cpp/logit/LogMacros.hpp +++ b/include/logit_cpp/logit/log_macros.hpp @@ -1,6 +1,6 @@ #pragma once -#ifndef _LOGIT_LOG_MACROS_HPP_INCLUDED -#define _LOGIT_LOG_MACROS_HPP_INCLUDED +#ifndef LOGIT_LOG_MACROS_HPP_INCLUDED +#define LOGIT_LOG_MACROS_HPP_INCLUDED #ifdef LOGIT_WITH_FMT #include @@ -9,7 +9,7 @@ #include "config.hpp" #include "utils/format.hpp" -/// \file LogMacros.hpp +/// \file log_macros.hpp /// \brief Provides various logging macros for different log levels and options. /// \ingroup LoggingMacros @@ -71,7 +71,7 @@ static_assert(LOGIT_LEVEL_FATAL == static_cast(logit::LogLevel::LOG_LVL_FAT //------------------------------------------------------------------------------ // System error logging helpers -#include "detail/SystemErrorMacros.hpp" +#include "detail/system_error_macros.hpp" //------------------------------------------------------------------------------ // Platform-specific error logging macros @@ -2199,4 +2199,4 @@ static_assert(LOGIT_LEVEL_FATAL == static_cast(logit::LogLevel::LOG_LVL_FAT /// \} -#endif // _LOGIT_LOG_MACROS_HPP_INCLUDED +#endif // LOGIT_LOG_MACROS_HPP_INCLUDED diff --git a/tests/compiled_level_test.cpp b/tests/compiled_level_test.cpp index 870a77e..e6e9039 100644 --- a/tests/compiled_level_test.cpp +++ b/tests/compiled_level_test.cpp @@ -1,5 +1,5 @@ #define LOGIT_COMPILED_LEVEL LOGIT_LEVEL_INFO -#include +#include template int should_not_compile() { diff --git a/tests/crash_logger_test.cpp b/tests/crash_logger_test.cpp index 38f41e2..9fa94ca 100644 --- a/tests/crash_logger_test.cpp +++ b/tests/crash_logger_test.cpp @@ -34,7 +34,7 @@ extern "C" void logit_test::fake_exit(int code) { g_exit_code = code; } #define _exit ::logit_test::fake_exit #define private public -#include +#include #undef private #undef _exit diff --git a/tests/ems/async_flush.cpp b/tests/ems/async_flush.cpp index 40ba5a1..10f1464 100644 --- a/tests/ems/async_flush.cpp +++ b/tests/ems/async_flush.cpp @@ -1,4 +1,4 @@ -#include +#include int main() { LOGIT_ADD_CONSOLE(LOGIT_CONSOLE_PATTERN, true); diff --git a/tests/ems/console_smoke.cpp b/tests/ems/console_smoke.cpp index 008fc34..3a636d4 100644 --- a/tests/ems/console_smoke.cpp +++ b/tests/ems/console_smoke.cpp @@ -1,4 +1,4 @@ -#include +#include int main() { LOGIT_ADD_CONSOLE_DEFAULT(); diff --git a/tests/file_logger_external_cmd_compression_test.cpp b/tests/file_logger_external_cmd_compression_test.cpp index 51804b3..259960a 100644 --- a/tests/file_logger_external_cmd_compression_test.cpp +++ b/tests/file_logger_external_cmd_compression_test.cpp @@ -1,4 +1,4 @@ -#include +#include #if defined(LOGIT_HAS_ZLIB) #include #include diff --git a/tests/file_logger_gzip_compression_test.cpp b/tests/file_logger_gzip_compression_test.cpp index 9a57bea..6bba961 100644 --- a/tests/file_logger_gzip_compression_test.cpp +++ b/tests/file_logger_gzip_compression_test.cpp @@ -1,4 +1,4 @@ -#include +#include #if defined(LOGIT_HAS_ZLIB) #include #include diff --git a/tests/file_logger_remove_old_logs_suffixes_test.cpp b/tests/file_logger_remove_old_logs_suffixes_test.cpp index 255d2dd..117c33b 100644 --- a/tests/file_logger_remove_old_logs_suffixes_test.cpp +++ b/tests/file_logger_remove_old_logs_suffixes_test.cpp @@ -1,5 +1,5 @@ #define LOGIT_FILE_LOGGER_PATH "." -#include +#include #include #include #if __cplusplus >= 201703L diff --git a/tests/file_logger_rotation_naming_sequence_test.cpp b/tests/file_logger_rotation_naming_sequence_test.cpp index 34d9c7b..da06fc3 100644 --- a/tests/file_logger_rotation_naming_sequence_test.cpp +++ b/tests/file_logger_rotation_naming_sequence_test.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include diff --git a/tests/file_logger_rotation_naming_timestamp_ms_test.cpp b/tests/file_logger_rotation_naming_timestamp_ms_test.cpp index 0b68f76..128d371 100644 --- a/tests/file_logger_rotation_naming_timestamp_ms_test.cpp +++ b/tests/file_logger_rotation_naming_timestamp_ms_test.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include diff --git a/tests/file_logger_rotation_naming_timestamp_retention_test.cpp b/tests/file_logger_rotation_naming_timestamp_retention_test.cpp index ee8ff8d..2017148 100644 --- a/tests/file_logger_rotation_naming_timestamp_retention_test.cpp +++ b/tests/file_logger_rotation_naming_timestamp_retention_test.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include diff --git a/tests/file_logger_rotation_naming_timestamp_test.cpp b/tests/file_logger_rotation_naming_timestamp_test.cpp index ed6e442..b5b3dfa 100644 --- a/tests/file_logger_rotation_naming_timestamp_test.cpp +++ b/tests/file_logger_rotation_naming_timestamp_test.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include diff --git a/tests/file_logger_rotation_test.cpp b/tests/file_logger_rotation_test.cpp index 6725797..f4121d6 100644 --- a/tests/file_logger_rotation_test.cpp +++ b/tests/file_logger_rotation_test.cpp @@ -1,5 +1,5 @@ #define LOGIT_FILE_LOGGER_PATH "." -#include +#include #include #include #if __cplusplus >= 201703L diff --git a/tests/file_logger_test.cpp b/tests/file_logger_test.cpp index e81abd6..3480dd5 100644 --- a/tests/file_logger_test.cpp +++ b/tests/file_logger_test.cpp @@ -1,5 +1,5 @@ #define LOGIT_FILE_LOGGER_PATH "." -#include +#include #include #include diff --git a/tests/file_logger_zstd_compression_test.cpp b/tests/file_logger_zstd_compression_test.cpp index 7c2b96f..817aec7 100644 --- a/tests/file_logger_zstd_compression_test.cpp +++ b/tests/file_logger_zstd_compression_test.cpp @@ -1,4 +1,4 @@ -#include +#include #if defined(LOGIT_HAS_ZSTD) #include #include diff --git a/include/logit_cpp/logit/test/loggers/file/file/file/test_log_depth_3.hpp b/tests/fixtures/test/loggers/file/file/file/test_log_depth_3.hpp similarity index 100% rename from include/logit_cpp/logit/test/loggers/file/file/file/test_log_depth_3.hpp rename to tests/fixtures/test/loggers/file/file/file/test_log_depth_3.hpp diff --git a/include/logit_cpp/logit/test/loggers/file/test_log_depth_2.hpp b/tests/fixtures/test/loggers/file/test_log_depth_2.hpp similarity index 100% rename from include/logit_cpp/logit/test/loggers/file/test_log_depth_2.hpp rename to tests/fixtures/test/loggers/file/test_log_depth_2.hpp diff --git a/include/logit_cpp/logit/test/test_log_depth_1.hpp b/tests/fixtures/test/test_log_depth_1.hpp similarity index 100% rename from include/logit_cpp/logit/test/test_log_depth_1.hpp rename to tests/fixtures/test/test_log_depth_1.hpp diff --git a/tests/fmt_macros_test.cpp b/tests/fmt_macros_test.cpp index 1221ca6..cc5c00c 100644 --- a/tests/fmt_macros_test.cpp +++ b/tests/fmt_macros_test.cpp @@ -1,5 +1,5 @@ #define LOGIT_FILE_LOGGER_PATH "." -#include +#include #include #include diff --git a/tests/install_consumer/main.cpp b/tests/install_consumer/main.cpp index 855671b..74668bd 100644 --- a/tests/install_consumer/main.cpp +++ b/tests/install_consumer/main.cpp @@ -1,4 +1,4 @@ -#include +#include int main() { #if LOGIT_SYSLOG_ENABLED diff --git a/tests/log_filters_tags_test.cpp b/tests/log_filters_tags_test.cpp index e03e609..9eea5fc 100644 --- a/tests/log_filters_tags_test.cpp +++ b/tests/log_filters_tags_test.cpp @@ -1,5 +1,5 @@ #define LOGIT_COMPILED_LEVEL LOGIT_LEVEL_TRACE -#include +#include #include #include diff --git a/tests/os_error_macros_test.cpp b/tests/os_error_macros_test.cpp index a796fe0..f50aee8 100644 --- a/tests/os_error_macros_test.cpp +++ b/tests/os_error_macros_test.cpp @@ -1,5 +1,5 @@ #define LOGIT_FILE_LOGGER_PATH "." -#include +#include #include #include diff --git a/tests/print_if_macros_test.cpp b/tests/print_if_macros_test.cpp index d7ee61a..4de0579 100644 --- a/tests/print_if_macros_test.cpp +++ b/tests/print_if_macros_test.cpp @@ -1,5 +1,5 @@ #define LOGIT_FILE_LOGGER_PATH "." -#include +#include #include #include diff --git a/tests/printf_format_macros_test.cpp b/tests/printf_format_macros_test.cpp index f36a691..94224ae 100644 --- a/tests/printf_format_macros_test.cpp +++ b/tests/printf_format_macros_test.cpp @@ -1,5 +1,5 @@ #define LOGIT_FILE_LOGGER_PATH "." -#include +#include #include #include