[#btck_logging_set_level_category]
= btck&lowbar;logging&lowbar;set&lowbar;level&lowbar;category
:mrdocs:

Set the log level of the global internal logger&period; This does not enable the selected categories&period; Use xref:btck_logging_enable_category.adoc[`btck&lowbar;logging&lowbar;enable&lowbar;category`] to start logging from a specific, or all categories&period; This changes a global setting and will override settings for all existing xref:btck_LoggingConnection-04.adoc[`btck&lowbar;LoggingConnection`] instances&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
btck&lowbar;logging&lowbar;set&lowbar;level&lowbar;category(
    xref:btck_LogCategory.adoc[btck&lowbar;LogCategory] category,
    xref:btck_LogLevel.adoc[btck&lowbar;LogLevel] level);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *category* [in]
| If btck&lowbar;LogCategory&lowbar;ALL is chosen, sets both the global fallback log level used by all categories that don&apos;t have a specific level set, and also sets the log level for messages logged with the btck&lowbar;LogCategory&lowbar;ALL category itself&period; For any other category, sets a category&hyphen;specific log level that overrides the global fallback for that category only&period;
| *level* [in]
| Log level at which the log category is set&period;
|===


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