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 written into the default logger.

See also
utest::LogCaptureLogger

Definition at line 132 of file log_capture_fixture.hpp.

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

Static Public Member Functions

static void TearDownTestSuite ()
 

Protected Member Functions

LogCaptureLoggerGetLogCapture ()
 
void SetDefaultLogger (logging::LoggerPtr new_logger)
 
void SetDefaultLoggerLevel (logging::Level new_level)
 Set the default logger level.
 

Constructor & Destructor Documentation

◆ LogCaptureFixture()

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

Definition at line 134 of file log_capture_fixture.hpp.

Member Function Documentation

◆ GetLogCapture()

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

Definition at line 136 of file log_capture_fixture.hpp.

◆ SetDefaultLogger()

template<class Base >
void utest::DefaultLoggerFixture< Base >::SetDefaultLogger ( logging::LoggerPtr new_logger)
inlineprotectedinherited

Set the default logger and postpone its destruction till the coroutine engine stops

Definition at line 28 of file default_logger_fixture.hpp.

◆ SetDefaultLoggerLevel()

template<class Base >
void utest::DefaultLoggerFixture< Base >::SetDefaultLoggerLevel ( logging::Level new_level)
inlineprotectedinherited

Set the default logger level.

Definition at line 39 of file default_logger_fixture.hpp.

◆ TearDownTestSuite()

template<class Base >
static void utest::DefaultLoggerFixture< Base >::TearDownTestSuite ( )
inlinestaticinherited

Definition at line 20 of file default_logger_fixture.hpp.


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