---
title: "isEnabled(type:)"
framework: os
role: symbol
role_heading: Instance Method
path: "os/logger/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.

## Declaration

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

## Parameters

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

## Return Value

Return Value True if logging is enabled for the specified log type, false otherwise
