<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "BitcoinKernel",
  "identifier" : "/documentation/BitcoinKernel/LogCategory",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "BitcoinKernel"
    ],
    "preciseIdentifier" : "s:13BitcoinKernel11LogCategoryO"
  },
  "title" : "LogCategory"
}
-->

# LogCategory

Categories for filtering kernel log messages — pass to
[`enableLogCategory(_:)`](/documentation/BitcoinKernel/enableLogCategory(_:)) / [`disableLogCategory(_:)`](/documentation/BitcoinKernel/disableLogCategory(_:)) /
[`setLogLevel(category:level:)`](/documentation/BitcoinKernel/setLogLevel(category:level:)) to control the noise level.

```
enum LogCategory
```

## Overview

Categories map 1:1 onto Bitcoin Core’s `BCLog::LogFlags` values.
Enabling a category routes matching log lines to any active
[`LoggingConnection`](/documentation/BitcoinKernel/LoggingConnection); disabling suppresses them at the source.

Maps to `btck_LogCategory` constants in the kernel C API.