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

typedef HandlerDataMap from class fcf::NTest::Logger

Type: fcf::NTest::Logger::HandlerDataMap

Definition: typedef std::map<std::string, fcf::NTest::SharedPtrAny> HandlerDataMap;

Package: fcfTest

File: test.hpp

Available from version: 1.2.1

A map used to store user-defined metadata for logger handlers.

The fcf::NTest::Logger::HandlerDataMap is a specialized container used by the fcf::NTest::Logger to associate arbitrary user data with specific logging components. It maps string keys to fcf::NTest::SharedPtrAny objects, allowing for type-erased storage of complex metadata.

This map is utilized in several key areas of the logging system:

  • Prefix::dataFactory: To provide data used when generating prefixes.
  • Format::dataFactory: To provide data used when applying formats.
  • OutputTarget::prefixData: To store persistent data for prefixes on a per-target basis.
  • OutputTarget::formatData: To store persistent data for formats on a per-target basis.

By using fcf::NTest::SharedPtrAny as the value type, the framework ensures that the data is managed via reference counting and can safely persist across different stages of the logging pipeline.