4#include "../clutchlog/clutchlog.h"
43 fmt reset(typo::reset);
44 std::ostringstream tpl;
45 tpl <<
"{depth_fmt}{depth} {depth_marks}"
46 << reset <<
"{funchash_fmt}in {func} {msg}\t\n";
47 log.format(tpl.str());
48 log.threshold(clutchlog::level::xdebug);
49 std::vector<fmt> greys{ fmt(15) };
50 for(
unsigned short i=255; i > 231; i-=3) {
51 greys.push_back( fmt(i) ); }
52 log.depth_styles( greys );
Color and style formatter for ANSI terminal escape sequences.
typo
Typographic style codes.
static clutchlog & logger()
Get the logger instance.
#define CLUTCHLOGD(LEVEL, WHAT, DEPTH_DELTA)
Log a message at the given level and with a given depth delta.
#define CLUTCHLOG(LEVEL, WHAT)
Log a message at the given level.