[#BCLog-Logger-SetCategoryLogLevel-0a]
= xref:BCLog.adoc[BCLog]::xref:BCLog/Logger.adoc[Logger]::SetCategoryLogLevel
:relfileprefix: ../../
:mrdocs:

`SetCategoryLogLevel` overloads

== Synopses

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

Replace all per&hyphen;category log levels&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e43eed4b8)&rsqb;&rsqb;
void
xref:BCLog/Logger/SetCategoryLogLevel-08.adoc[SetCategoryLogLevel](std::unordered&lowbar;map&lt;LogFlags, Level&gt; const& levels);
----

[.small]#xref:BCLog/Logger/SetCategoryLogLevel-08.adoc[_» more&period;&period;&period;_]#

Set the override log level for a category, parsing both from strings&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e43eed738)&rsqb;&rsqb;
bool
xref:BCLog/Logger/SetCategoryLogLevel-01.adoc[SetCategoryLogLevel](
    std::string&lowbar;view category&lowbar;str,
    std::string&lowbar;view level&lowbar;str);
----

[.small]#xref:BCLog/Logger/SetCategoryLogLevel-01.adoc[_» more&period;&period;&period;_]#

== Return Value

true if both strings were parsed and the level was set&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *levels*
| The new map from category to override log level&period;
| *category&lowbar;str*
| The category name to configure&period;
| *level&lowbar;str*
| The log level name to apply&period;
|===


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