---
title: "downloadLog(of:timeout:queue:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbasedevice/downloadlog(of:timeout:queue:completion:)"
---

# downloadLog(of:timeout:queue:completion:)

## Declaration

```swift
func downloadLog(of type: MTRDiagnosticLogType, timeout: TimeInterval, queue: dispatch_queue_t, completion: @escaping @Sendable (URL?, (any Error)?) -> Void)
```

```swift
func downloadLog(of type: MTRDiagnosticLogType, timeout: TimeInterval, queue: dispatch_queue_t) async throws -> URL
```
