---
title: level
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtllogstatedescriptor/level
---

# level

The minimum level of messages that the shader can log.

## Declaration

```swift
var level: MTLLogLevel { get set }
```

## Discussion

Discussion The default value is MTLLogLevel.debug. Use this value to limit which logs from your shader the log state stores. The log state doesn’t store messages at a lower level. Increase the level to reduce verbosity of logging.

## See Also

### Instance properties

- [bufferSize](metal/mtllogstatedescriptor/buffersize.md)
