Skip to content

Commit f1d6351

Browse files
committed
Document isAutomaticConnectionEnabled
1 parent 960830e commit f1d6351

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Sources/Pulse/Pulse.docc/Articles/GettingStarted.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,15 @@ Add the following to your app's plist file:
100100

101101
### 4.2. Enable Remote Logging
102102

103-
Open the Pulse console from the app, go to Settings, enable "Remote Logging", and select a device running Pulse Pro to connect to.
103+
- **Option 1 (Recommended)** Enable automatic connection to Pulse apps using ``RemoteLogger/isAutomaticConnectionEnabled``:
104+
105+
```swift
106+
#if DEBUG
107+
RemoteLogger.shared.isAutomaticConnectionEnabled = true
108+
#endif
109+
```
110+
111+
- **Option 2 (Manual)**. Open the Pulse console from the app, go to "Settings", enable "Remote Logging", and select your Mac.
104112

105113
![Enabling remote logging](remote-logging.png)
106114

0 commit comments

Comments
 (0)