<!--
{
  "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/MTRDeviceControllerServerProtocol/downloadLog(withController:nodeId:type:timeout:completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Matter"
    ],
    "preciseIdentifier" : "c:objc(pl)MTRDeviceControllerServerProtocol(im)downloadLogWithController:nodeId:type:timeout:completion:"
  },
  "title" : "downloadLog(withController:nodeId:type:timeout:completion:)"
}
-->

# downloadLog(withController:nodeId:type:timeout:completion:)

```
optional func downloadLog(withController controller: Any?, nodeId: NSNumber, type: MTRDiagnosticLogType, timeout: TimeInterval, completion: @escaping @Sendable (String?, (any Error)?) -> Void)
```

```
optional func downloadLog(withController controller: Any?, nodeId: NSNumber, type: MTRDiagnosticLogType, timeout: TimeInterval) async throws -> String
```

---

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)