<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "os",
  "identifier" : "/documentation/os/Logger/isEnabled(type:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "s:2os6LoggerV9isEnabled4typeSbSo0a5_log_E2_ta_tF"
  },
  "title" : "isEnabled(type:)"
}
-->

# isEnabled(type:)

Checks if the Logger can emit log messages for a given log type.
This allows for more granular control over logging based on the log level.

```
func isEnabled(type: OSLogType) -> Bool
```

## Parameters

`type`

The log type to check (e.g., .default, .info, .debug, .error, .fault)

## Return Value

true if logging is enabled for the specified log type, false otherwise

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)