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

`EnableCategory` overloads

== Synopses

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

Enable a log category&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BCLog/Logger/EnableCategory-0e2.adoc[EnableCategory](xref:BCLog/LogFlags.adoc[LogFlags] flag);
----

[.small]#xref:BCLog/Logger/EnableCategory-0e2.adoc[_» more&period;&period;&period;_]#

Enable a log category, parsing it from a string&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BCLog/Logger/EnableCategory-0eb.adoc[EnableCategory](std::string&lowbar;view str);
----

[.small]#xref:BCLog/Logger/EnableCategory-0eb.adoc[_» more&period;&period;&period;_]#

== Return Value

true if the string named a valid category&period;

== Parameters

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


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