add new concepts and error and warn logger

This commit is contained in:
2025-09-10 12:05:43 +03:00
parent 057dc595ac
commit 626b5a6cd9
9 changed files with 209 additions and 377 deletions

View File

@@ -3,6 +3,7 @@
#include <unordered_set>
#include <map>
#include "hack/logger/logger.hpp"
#include "hack/patterns/ring_buffer.hpp"
auto main(int argc, char *argv[]) -> int
{
@@ -24,6 +25,9 @@ auto main(int argc, char *argv[]) -> int
sti.push(3);
std::set<int> si = { 1, 2, 3 };
std::unordered_set<int> usi = { 1, 1, 1 };
hack::patterns::ring_buffer<int> rb;
rb.create(10);
for (int i = 0; i < 10; ++i) rb.put(i);
hack::log().set_devider(", ");
hack::log().no_func();
@@ -53,7 +57,13 @@ auto main(int argc, char *argv[]) -> int
hack::log().reset();
hack::log().set_devider(", ");
hack::log()(sti, 123, true);
hack::log().reset();
hack::log()("log", 123, sti, false, 1.8f, vs);
hack::warn()("warn");
hack::error()("error");
hack::log()(rb);
return 0;
}