4 #include "../clutchlog/clutchlog.h"
35 fmt reset(typo::reset);
36 std::ostringstream tpl;
37 tpl <<
"{level_fmt}Having a {level} {filehash_fmt}within {file} {funchash_fmt}calling {func} {depth_fmt}at depth {depth_marks} {depth} "
38 << reset <<
" : {msg}\n";
39 log.format(tpl.str());
40 log.threshold(clutchlog::level::xdebug);
42 log.filehash_styles( {fmt(fmt::fg::red), fmt(fmt::fg::yellow)} );
43 log.funchash_styles( {fmt(fmt::fg::green), fmt(fmt::fg::blue),
44 fmt(fmt::fg::bright_green), fmt(fmt::fg::bright_blue), fmt(fmt::fg::magenta)} );
45 log.depth_styles( {fmt(255),fmt(250),fmt(245),fmt(240)} );