diff --git a/.ccls b/.ccls deleted file mode 100644 index bd429fb..0000000 --- a/.ccls +++ /dev/null @@ -1,4 +0,0 @@ -clang --std=c++20 --Iinclude --Isrc diff --git a/.gitignore b/.gitignore index 01e72c4..1e66285 100755 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ build .cache -.ccls-cache subprojects/* !subprojects/catch2.wrap diff --git a/bin/examples/logger/main.cpp b/bin/examples/logger/main.cpp index ef72a9a..ff87a4d 100644 --- a/bin/examples/logger/main.cpp +++ b/bin/examples/logger/main.cpp @@ -4,6 +4,7 @@ #include #include "hack/logger/logger.hpp" #include "hack/patterns/ring_buffer.hpp" +#include "hack/utils/timestamp.hpp" auto main(int argc, char *argv[]) -> int { @@ -68,10 +69,8 @@ auto main(int argc, char *argv[]) -> int hack::log()(str.c_str()); hack::log()(str); - // HERE - // реализовать это ... - // std::filesystem::path p { "/test/file/path.txt" }; - // hack::log()(p); + std::filesystem::path p { "/test/file/path.txt" }; + hack::log()(p); return 0; } diff --git a/src/hack/logger/logger.hpp b/src/hack/logger/logger.hpp index 21df736..83be59f 100755 --- a/src/hack/logger/logger.hpp +++ b/src/hack/logger/logger.hpp @@ -120,6 +120,11 @@ namespace hack { std::cout << data << (m_count != 0 ? m_devider : ""); } + + void print_t(const std::filesystem::path& path) + { + std::cout << path.string() << (m_count != 0 ? m_devider : ""); + } // для bool template