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

Synopsis

Declared in <util/log.h>

class SourceLocation;

Member Functions

Name

Description

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

Name

Description

util::log::LogPrintFormatInternal

Format and log a message with rate limiting enabled.

util::log::LogPrintFormatInternal

Format and log a message with rate limiting disabled.

util::log::LogPrintFormatInternal_

Format a log message and forward it to util::log::Log.

Created with MrDocs