title: Change the log level on iOS 10 (Unified Logging) with Console.app
body: <p>This is so simple but: how on earth do I set the level of log messages I see in Console.app, if I am trying to use iOS10's new "Unified Logging &amp; Activity Tracing" API?</p>
  
  <p>In other words, if I have code running on iOS like so:</p>
  
  <pre><code>fileprivate let logger = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "mycategory")
  
  fileprivate func logv(_ s:String) {
      os_log("%@",log:logger,type:.info,s)
  }
  </code></pre>
  
  <p>Then what do I need to do to see the logged messages in Console.app? By default, only log messages of type <code>.error</code> seem to show up.</p>
  
  <p>I am wondering how to do this if I am running code on a device, not in the simulator.</p>
  
  <p>Related:</p>
  
  <p><a href="https://stackoverflow.com/questions/38303711/xcode-8-os-log-debug-and-os-log-info-logs-are-not-displayed-on-new-mac-console">Xcode 8 - os_log_debug and os_log_info logs are not displayed on new Mac console (unified logging)</a></p>