add std::filesystem::path logger

This commit is contained in:
2025-09-30 21:59:38 +03:00
parent fc247a5b83
commit c716126382
4 changed files with 8 additions and 9 deletions

4
.ccls
View File

@@ -1,4 +0,0 @@
clang
-std=c++20
-Iinclude
-Isrc

1
.gitignore vendored
View File

@@ -1,5 +1,4 @@
build
.cache
.ccls-cache
subprojects/*
!subprojects/catch2.wrap

View File

@@ -4,6 +4,7 @@
#include <map>
#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;
}

View File

@@ -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<concepts::is_bool T>