SourceLocation

Like std::source_location, but allowing to override the function name.

Synopsis

Declared in <util/log.h>

class SourceLocation;

Member Functions

NameDescription
SourceLocation [constructor]Construct from a function name and a source location. The func argument must be constructed from the C++11 func macro. Ref: https://en.cppreference.com/w/cpp/language/function.html#func Non-static string literals are not supported.
file_name Return the file name of the source location.
function_name_short Return the overriding function name.
line Return the line number of the source location.

Non-Member Functions

NameDescription
util::log::LogPrintFormatInternalFormat and log a message with rate limiting enabled.
util::log::LogPrintFormatInternalFormat and log a message with rate limiting disabled.
util::log::LogPrintFormatInternal_Format a log message and forward it to util::log::Log.