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

fcf::NTest::logger() function

fcf::NTest::Logger& fcf::NTest::logger()

Package: fcfTest

File: test.hpp

Available from version: 1.0.1

Provides global access to the singleton logger instance for configurable, multi-level diagnostic output with support for custom static and dynamic prefixes

The logger() function returns a reference to the global fcf::NTest::Logger instance. It serves as the primary entry point for managing diagnostic messages throughout the application or test suite.

Result
fcf::NTest::Logger&
- the reference to the global fcf::NTest::Logger instance

Example:

fcf::NTest::logger().setLevelStr("wrn"); fcf::NTest::err() << "This will be displayed." << std::endl; fcf::NTest::inf() << "This will be suppressed." << std::endl;