absl::LogEntry::source_filename

Returns the source file name where the log message occurred, taken from FILE unless overridden by LOG(...).AtLocation(...).

Synopsis

Declared in <absl/log/log_entry.h>

std::string_view
source_filename() const;

Description

Take special care not to use the returned value after the lifetime of the entry; copy it first if you need the data later.

Return Value

The source file name.