add std::filesystem::path logger
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,4 @@
|
||||
build
|
||||
.cache
|
||||
.ccls-cache
|
||||
subprojects/*
|
||||
!subprojects/catch2.wrap
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -121,6 +121,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>
|
||||
void print_t(const T& data)
|
||||
|
||||
Reference in New Issue
Block a user