start logger impl
This commit is contained in:
24
bin/examples/logger/main.cpp
Normal file
24
bin/examples/logger/main.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user