class LogCapturer

Defined at line 26 of file ../../src/lib/fidl_codec/logger.h

For capturing logs to a given stream. Use the macro FX_LOGS_OR_CAPTURE when logging, and

read the result by using LogCapturer:

ostringstream ss;

LogCapturer capturer(

&ss

);

FX_LOGS_OR_CAPTURE(ERROR)

<

<

"Foo";

ASSERT_EQ(ss.str(), "Foo"); // should be true.

Public Methods

void LogCapturer (std::ostream * stream)

Defined at line 28 of file ../../src/lib/fidl_codec/logger.h

void ~LogCapturer ()

Defined at line 32 of file ../../src/lib/fidl_codec/logger.h

std::ostream & stream ()

Defined at line 33 of file ../../src/lib/fidl_codec/logger.h