userver: utest::LogCaptureFixture< Base > Class Template Reference
Loading...
Searching...
No Matches
utest::LogCaptureFixture< Base > Class Template Reference

#include <userver/utest/log_capture_fixture.hpp>

Detailed Description

template<typename Base = ::testing::Test>
class utest::LogCaptureFixture< Base >

Fixture that allows to capture and extract log.

Definition at line 42 of file log_capture_fixture.hpp.

+ Inheritance diagram for utest::LogCaptureFixture< Base >:
+ Collaboration diagram for utest::LogCaptureFixture< Base >:

Protected Member Functions

std::string ExtractRawLog ()
 Extract and clear current log.
 
- Protected Member Functions inherited from utest::DefaultLoggerFixture< Base >
void SetDefaultLogger (logging::LoggerPtr new_logger)
 
void SetDefaultLoggerLevel (logging::Level new_level)
 Set the default logger level.
 

Additional Inherited Members

- Static Public Member Functions inherited from utest::DefaultLoggerFixture< Base >
static void TearDownTestSuite ()
 

Constructor & Destructor Documentation

◆ LogCaptureFixture()

template<typename Base = ::testing::Test>
utest::LogCaptureFixture< Base >::LogCaptureFixture ( )
inlineprotected

Definition at line 44 of file log_capture_fixture.hpp.

Member Function Documentation

◆ ExtractRawLog()

template<typename Base = ::testing::Test>
std::string utest::LogCaptureFixture< Base >::ExtractRawLog ( )
inlineprotected

Extract and clear current log.

Definition at line 49 of file log_capture_fixture.hpp.


The documentation for this class was generated from the following file: