FCF 2.0 development in progress...
> > > > > >
[News] [C++ Libraries API] [C++ Downloads] [Donate to the project] [Contacts]

getLevel() method from fcf::NTest::Logger class

fcf::NTest::ELogLevel getLevel()

Class: fcf::NTest::Logger

Package: fcfTest

File: test.hpp

Available from version: 1.0.1

Returns the current logging threshold level as an fcf::NTest::ELogLevel enumeration value.

The getLevel() method retrieves the current verbosity threshold of the logger. This value determines which log messages are processed and which are discarded based on their severity level.

Result
fcf::NTest::ELogLevel
- The current active log level (e.g., LL_LOG, LL_DBG, etc.)

Example: Checking the current log level

Useful for verifying the logger configuration during runtime or debugging

fcf::NTest::logger().setLevel(fcf::NTest::LL_DBG); if (fcf::NTest::logger().getLevel() >= fcf::NTest::LL_DBG) { std::cout << "Logger is in Debug mode." << std::endl; }