absl::LogErrorStreamer

Returns a LogStreamer that writes at level LogSeverity::kError.

Synopses

Declared in <absl/log/log_streamer.h>

Returns a LogStreamer that writes at level LogSeverity::kError.

LogStreamer
LogErrorStreamer(absl::SourceLocation loc = absl::SourceLocation::current());
» more...

Returns a LogStreamer that writes at level LogSeverity::kError.

LogStreamer
LogErrorStreamer(
    std::string_view file,
    int line);
» more...

Return Value

A LogStreamer configured to log at LogSeverity::kError.

Parameters

NameDescription
locThe source location the message is attributed to.
fileThe source file the message is attributed to.
lineThe source line the message is attributed to.