---
title: "downloadLog(withController:nodeId:type:timeout:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrdevicecontrollerserverprotocol/downloadlog(withcontroller:nodeid:type:timeout:completion:)"
---

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

## Declaration

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

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