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

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

## Declaration

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

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