absl::LogEntry::text_message_with_prefix

Returns the text-formatted message including its metadata prefix, but without a trailing newline.

Synopsis

Declared in <absl/log/log_entry.h>

std::string_view
text_message_with_prefix() const;

Description

The buffer does not outlive the entry; if you need the data later, you must copy it.

Return Value

The prefixed message, without a trailing newline.