t-dump.cpp
#include <iostream>
#include <algorithm>
#include <random>
#include "../clutchlog/clutchlog.h"
int main(/*const int argc, char* argv[]*/)
{
auto& log = clutchlog::logger();
log.out(std::clog);
log.threshold(clutchlog::level::xdebug);
std::vector<std::string> msg = {"hello", "world", "!"};
CLUTCHDUMP(xdebug, msg, "test_{n}.dat");
std::vector<int> v(3);
std::generate(v.begin(), v.end(), std::rand);
CLUTCHDUMP(info, v, "rand_{n}.dat");
}
CLUTCHDUMP
#define CLUTCHDUMP(LEVEL, CONTAINER, FILENAME)
Dump the given container.
Definition: clutchlog.h:98
clutchlog::logger
static clutchlog & logger()
Get the logger instance.
Definition: clutchlog.h:296