<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLLogLevel",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLLogLevel"
  },
  "title" : "MTLLogLevel"
}
-->

# MTLLogLevel

The supported log levels for shader logging.

```
enum MTLLogLevel
```

## Topics

### Enumeration cases

[`MTLLogLevel.debug`](/documentation/Metal/MTLLogLevel/debug)

The log level that captures diagnostic information.

[`MTLLogLevel.info`](/documentation/Metal/MTLLogLevel/info)

The log level that captures additional information.

[`MTLLogLevel.notice`](/documentation/Metal/MTLLogLevel/notice)

The log level that captures notifications.

[`MTLLogLevel.error`](/documentation/Metal/MTLLogLevel/error)

The log level that captures error information.

[`MTLLogLevel.fault`](/documentation/Metal/MTLLogLevel/fault)

The log level that captures fault information.

[`MTLLogLevel.undefined`](/documentation/Metal/MTLLogLevel/undefined)

The log level when the log level hasn’t been configured.



---

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)