add std::filesystem::path logger
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,4 @@
|
|||||||
build
|
build
|
||||||
.cache
|
.cache
|
||||||
.ccls-cache
|
|
||||||
subprojects/*
|
subprojects/*
|
||||||
!subprojects/catch2.wrap
|
!subprojects/catch2.wrap
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
#include <map>
|
#include <map>
|
||||||
#include "hack/logger/logger.hpp"
|
#include "hack/logger/logger.hpp"
|
||||||
#include "hack/patterns/ring_buffer.hpp"
|
#include "hack/patterns/ring_buffer.hpp"
|
||||||
|
#include "hack/utils/timestamp.hpp"
|
||||||
|
|
||||||
auto main(int argc, char *argv[]) -> int
|
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.c_str());
|
||||||
hack::log()(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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -120,6 +120,11 @@ namespace hack
|
|||||||
{
|
{
|
||||||
std::cout << data << (m_count != 0 ? m_devider : "");
|
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
|
// для bool
|
||||||
template<concepts::is_bool T>
|
template<concepts::is_bool T>
|
||||||
|
|||||||
Reference in New Issue
Block a user