[#BCLog-Logger-GetLogCategory]
= xref:BCLog.adoc[BCLog]::xref:BCLog/Logger.adoc[Logger]::GetLogCategory
:relfileprefix: ../../
:mrdocs:

Return log flag if str parses as a log category&period;

== Synopsis

Declared in `&lt;logging&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::optional&lt;BCLog::LogFlags&gt;
GetLogCategory(std::string&lowbar;view str);
----

== Return Value

The matching category flag, or nullopt if the string is not a known category&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *str*
| The category name to parse&period;
|===


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