[#SourceLocation]
= SourceLocation
:mrdocs:

Like std&colon;&colon;source&lowbar;location, but allowing to override the function name&period;

== Synopsis

Declared in `&lt;util&sol;log&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class SourceLocation;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:SourceLocation/2constructor.adoc[`SourceLocation`]         [.small]#[constructor]#
| Construct from a function name and a source location&period; The func argument must be constructed from the C&plus;&plus;11 *func* macro&period; Ref&colon; https&colon;&sol;&sol;en&period;cppreference&period;com&sol;w&sol;cpp&sol;language&sol;function&period;html&num;func Non&hyphen;static string literals are not supported&period;
| xref:SourceLocation/file_name.adoc[`file&lowbar;name`] 
| Return the file name of the source location&period;
| xref:SourceLocation/function_name_short.adoc[`function&lowbar;name&lowbar;short`] 
| Return the overriding function name&period;
| xref:SourceLocation/line.adoc[`line`] 
| Return the line number of the source location&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:util/log/LogPrintFormatInternal-03.adoc[`util&colon;&colon;log&colon;&colon;LogPrintFormatInternal`]
| Format and log a message with rate limiting enabled&period;
| xref:util/log/LogPrintFormatInternal-04.adoc[`util&colon;&colon;log&colon;&colon;LogPrintFormatInternal`]
| Format and log a message with rate limiting disabled&period;
| xref:util/log/LogPrintFormatInternal_.adoc[`util&colon;&colon;log&colon;&colon;LogPrintFormatInternal&lowbar;`]
| Format a log message and forward it to util&colon;&colon;log&colon;&colon;Log&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
