---
title: logState
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlcommandqueuedescriptor/logstate
---

# logState

The shader logging configuration that the command queue uses.

## Declaration

```swift
var logState: (any MTLLogState)? { get set }
```
