title: Viewing os_log messages in device console
body: <p>I'm trying to get some logging out of my app through Unified Logging (os_log)</p>
  
  <p>Here's the initialization of the log:</p>
  
  <pre><code>var osLog : OSLog = OSLog(subsystem: "com.test.testapp", category: "native-tester")
  </code></pre>
  
  <p>And here's how I use it:</p>
  
  <pre><code>os_log("iOS App initialized successfully!", log: osLog, type:.info)
  </code></pre>
  
  <p>When debugging the app normally, the logs appear properly on the console output, but when I look at the device console (Shown in the "Devices and Simulators" window) I don't see them at all.</p>
  
  <p><a href="https://developer.apple.com/documentation/os/logging" rel="noreferrer">This article</a> says that you should configure the system to enable the debug logs using</p>
  
  <pre><code>sudo log config --mode "level:debug" --subsystem com.test.testapp
  </code></pre>
  
  <p>But that didn't seem to make a difference. I'm guessing it's because I'm configuring the mac to view the logs, not the iPad.</p>
  
  <p>How do I view the ipad / iphone logs from os_log in the device console?</p>