I'm establishing a connection with NWListener
and NWConnection
which is working great. However, if the listener disappears, a lot of logs are appearing:
Is there a way to hide these logs?
- I'm aware of OS_ACTIVITY_MODE=disabled, but that will also hide a lot of other logs.
- I also know you can hide these using Xcode's filtering. I'm looking for a programmatically way to hide these completely. I'm not interested in seeing these at all, or, at least, I want to be in control.
Thanks!
I don’t think there’s a way to attain your specific goal. While the system log gives you control over what gets logged — I have a lot of info about that in Your Friend the System Log — Xcode has its own mechanism for catching system log entries. This sees the entries before they make it to the system log, which means the decision as to what shows up in Xcode in entirely under its control. It has a default policy and then applies whatever filter you set up.
Which brings me to:
Why isn’t that sufficient in your case?
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"