class ScopedGlobalLogger

Defined at line 21 of file ../../sdk/lib/driver/testing/cpp/scoped_global_logger.h

This is for unit tests that want to use FDF_LOG macros. It does this by wrapping the logic

to create an fdf::Logger instance and setting the global instance of the logger to it.

In DFv2, drivers normally set a global logging instance to be used by the driver logging macros.

In unit tests that only test functions internal to the driver (and do not instantiate the whole

driver with a `DriverBase::Start` call), tests must manually create an fdf::Logger to set as the

global logger.

Public Methods

void ScopedGlobalLogger (FuchsiaLogSeverity min_severity)

Defined at line 10 of file ../../sdk/lib/driver/testing/cpp/scoped_global_logger.cc

fdf::Logger & logger ()

Defined at line 26 of file ../../sdk/lib/driver/testing/cpp/scoped_global_logger.h

void ~ScopedGlobalLogger ()

Defined at line 45 of file ../../sdk/lib/driver/testing/cpp/scoped_global_logger.cc