30 enum { enabled =
true };
35 enum { enabled =
false };
40 std::cout <<
" ** BEGIN OF TEST **" << std::endl << std::endl;
42 std::cout <<
"LOGTEST ... this is per stdout using fprintf ..." << std::endl;
43 std::cout <<
"Testing error, warn, info, debug now: " << std::endl << std::endl;
46 log::warn() <<
"WARN VISIBLE " << std::endl;
47 log::info() <<
"INFO VISIBLE " << std::endl;
48 log::debug() <<
"DEBUG NOT VISIBLE " << std::endl;
50 log::error<my_key_enabled>() <<
"KEY: ERROR VISIBLE " << std::endl;
51 log::warn<my_key_enabled>() <<
"KEY: WARN VISIBLE " << std::endl;
52 log::info<my_key_enabled>() <<
"KEY: INFO VISIBLE " << std::endl;
53 log::debug<my_key_enabled>() <<
"KEY: DEBUG NOT VISIBLE " << std::endl;
55 log::error<my_key_disabled>() <<
"KEY: ERROR NOT VISIBLE " << std::endl;
56 log::warn<my_key_disabled>() <<
"KEY: WARN NOT VISIBLE " << std::endl;
57 log::info<my_key_disabled>() <<
"KEY: INFO NOT VISIBLE " << std::endl;
58 log::debug<my_key_disabled>() <<
"KEY: DEBUG NOT VISIBLE " << std::endl;
60 std::cout << std::endl;
61 std::cout <<
" ** END OF TEST **" << std::endl;
A logging facility providing fine-grained control over logging in ViennaSHE.
logger< true > error()
Used to log errors. The logging level is logERROR.
logger< true > debug()
Used to log debug output. The logging level is logDEBUG.
logger< true > warn()
Used to log warnings. The logging level is logWARNING.
logger< true > info()
Used to log infos. The logging level is logINFO.
The main ViennaSHE namespace. All functionality resides inside this namespace.