absl::SetLogBacktraceLocation

Sets the location the backtrace should be logged at.

Synopsis

Declared in <absl/log/globals.h>

void
SetLogBacktraceLocation(
    std::string_view file,
    int line);

Description

If the specified location isn't a LOG statement, the effect will be the same as ClearLogBacktraceLocation (but less efficient).

Parameters

NameDescription
fileThe source file name of the LOG statement.
lineThe source line number of the LOG statement.