---
title: MTLFunctionLog
framework: metal
role: symbol
role_heading: Protocol
path: metal/mtlfunctionlog
---

# MTLFunctionLog

A log entry a Metal device generates when the it runs a command buffer.

## Declaration

```swift
protocol MTLFunctionLog : NSObjectProtocol
```

## Topics

### Getting the log messsage

- [type](metal/mtlfunctionlog/type.md)
- [MTLFunctionLogType](metal/mtlfunctionlogtype.md)

### Getting execution details

- [debugLocation](metal/mtlfunctionlog/debuglocation.md)
- [encoderLabel](metal/mtlfunctionlog/encoderlabel.md)
- [function](metal/mtlfunctionlog/function.md)
- [MTLFunctionLogDebugLocation](metal/mtlfunctionlogdebuglocation.md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Shader logs

- [MTLLogContainer](metal/mtllogcontainer-swift.struct.md)
