setLevel() method from fcf::NTest::Logger class
Class:
Package: fcfTest
File: test.hpp
Available from version: 1.0.1
Sets the current logging threshold level, determining the minimum severity required for a message to be processed
The
Arguments
- The desired ELogLevel threshold. Note: LL_DEF cannot be used as a primary value and will throw a std::runtime_error
Example: Runtime Level Adjustment
// Set logger to only show errors and fatal messages
fcf::NTest::logger ().setLevel (fcf::NTest::LL_ERR );
fcf::NTest::err () << "This will be printed." << std::endl;
fcf::NTest::inf () << "This will be ignored." << std::endl;
VPSDime is an industry leading VPS hosting company that provides virtualized server services with high performance, availability and friendly support.