Files
hack/bin/examples/logger/main.cpp
2025-09-09 12:11:45 +03:00

25 lines
596 B
C++

#include <vector>
#include <map>
#include "hack/logger/logger.hpp"
auto main(int argc, char *argv[]) -> int
{
std::string str = "hi";
int i = 1;
double d = 2.0;
float f = 3.f;
std::vector<std::string> vs = { "a", "b", "c" };
std::map<int, int> mi = { { 1, 1 }, { 2, 2 }, { 3, 3 } };
hack::log().set_devider(", ");
hack::log().no_func();
hack::log()(1, 2, 3.1f, 4.3, "asdf", "qwer", "xzcv");
hack::log().set_devider(" = ");
hack::log()(1, 2, 3.1f, 4.3, "asdf", "qwer", "xzcv");
hack::log().reset();
hack::log()(1, 2, 3.1f, 4.3, "asdf", "qwer", "xzcv");
return 0;
}