                 present(configurationViewController, animated: true)
             } else if cell == connectCell {
                 connectOrDisconnect()
+            } else if cell == copyLogCell {
+                copyLog()
             } else if cell == clearLogCell {
                 clearLog()
             } else if cell == duplicateCell {

    @IBOutlet weak var configurationCell: UITableViewCell!
    @IBOutlet weak var connectCell: UITableViewCell!
    @IBOutlet weak var numberOfStreamsCell: UITableViewCell!
    @IBOutlet weak var clearLogCell: UITableViewCell!
    @IBOutlet weak var duplicateCell: UITableViewCell!


        present(alert, animated: true)
    }
    
    func copyLog() {
        if let log = logTextView.text {
            UIPasteboard.general.setValue(log, forPasteboardType: "TestSweets")
            showTemporaryAlert(title: "Copied")
        }
    }
    
    func clearLog() {
        logTextView.text = ""
    }
