3 #include "../clutchlog/clutchlog.h"
8 std::clog <<
"--" << std::endl;
29 std::clog <<
"depth: 99; threshold: xdebug; location: .*" << std::endl;
30 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
33 log.threshold(clutchlog::level::xdebug);
34 log.location(
".*",
".*");
37 std::clog <<
"depth: 4; threshold: xdebug; location: ,*" << std::endl;
38 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
41 assert(log.levels().find(
"XDebug") != std::end(log.levels()));
42 assert(log.levels().find(
"Xdebug") == std::end(log.levels()));
43 log.threshold(
"XDebug");
47 std::clog <<
"depth: 99; threshold: warning; location: .*" << std::endl;
48 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
51 log.threshold(clutchlog::level::warning);
55 std::clog <<
"depth: 99; threshold: xdebug; location: 'core','g'" << std::endl;
56 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
59 log.threshold(clutchlog::level::xdebug);
60 log.location(
"core",
"g");
63 std::clog <<
"depth: 99; threshold: debug; location: '.*','(g|h)'" << std::endl;
64 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
67 log.threshold(
"Debug");
68 log.location(
".*",
"(g|h)");