fuchsia_logging:: LogBufferBuilder
#include <log_message_impl.h>
Constructs a LogBuffer.
Summary
Constructors and Destructors |
|
---|---|
LogBufferBuilder(fuchsia_logging::RawLogSeverity severity)
|
Public functions |
|
---|---|
Build()
|
Builds the LogBuffer.
|
WithCondition(std::string_view condition)
|
Sets the condition for the log message This is used by test frameworks that want to print an assertion message when a test fails.
|
WithFile(std::string_view file, unsigned int line)
|
Sets the file name and line number for the log message.
|
WithMsg(std::string_view msg)
|
Sets the message for the log message.
|
Public functions
LogBufferBuilder
LogBufferBuilder( fuchsia_logging::RawLogSeverity severity )
WithCondition
LogBufferBuilder & WithCondition( std::string_view condition )
Sets the condition for the log message This is used by test frameworks that want to print an assertion message when a test fails.
This prepends the string "Check failed: "<
WithFile
LogBufferBuilder & WithFile( std::string_view file, unsigned int line )
Sets the file name and line number for the log message.