#include <userver/utest/log_capture_fixture.hpp>
Represents single log record, typically written via LOG_*
macros.
- See also
- utest::LogCaptureLogger
-
utest::LogCaptureFixture
Definition at line 36 of file log_capture_fixture.hpp.
◆ GetLevel()
- Returns
- the log level of the record
◆ GetLogRaw()
const std::string & utest::LogRecord::GetLogRaw |
( |
| ) |
const |
- Returns
- serialized log record
◆ GetTag()
const std::string & utest::LogRecord::GetTag |
( |
std::string_view | key | ) |
const |
- Returns
- decoded value of the tag in the log record
- Exceptions
-
◆ GetTagOptional()
std::optional< std::string > utest::LogRecord::GetTagOptional |
( |
std::string_view | key | ) |
const |
- Returns
- decoded value of the tag in the log record, or
std::nullopt
◆ GetTagOrNullptr()
const std::string * utest::LogRecord::GetTagOrNullptr |
( |
std::string_view | key | ) |
const |
- Returns
- decoded value of the tag in the log record, or
nullptr
◆ GetText()
const std::string & utest::LogRecord::GetText |
( |
| ) |
const |
- Returns
- decoded text of the log record
- Exceptions
-
if | no 'text' tag in the log |
The documentation for this class was generated from the following file: