<!--
{
  "availability" : [
    "iOS: 17.6.0 -",
    "iPadOS: 17.6.0 -",
    "macCatalyst: 17.6.0 -",
    "macOS: 14.6.0 -",
    "tvOS: 17.6.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Matter",
  "identifier" : "/documentation/Matter/MTRDevice/downloadLog(of:timeout:queue:completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Matter"
    ],
    "preciseIdentifier" : "c:objc(cs)MTRDevice(im)downloadLogOfType:timeout:queue:completion:"
  },
  "title" : "downloadLog(of:timeout:queue:completion:)"
}
-->

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

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

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

---

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)