where can I find 'os_log' output logs in swift on MacBook Pro

Hi,
I have tried to compile and run SimpleFirewall example on MacBook Pro. Where can I get 'os_log' output logs in this example? I have verified in system.log but no use.
Post not yet marked as solved Up vote post of nrednam Down vote post of nrednam
2.2k views

Replies

That's probably too obvious point: have you checked Console pane is open (on/off with square buttons at the very bottom, close to trash icon).

May also read this: https://developer.apple.com/documentation/os/logging/viewing_log_messages
Also:
  • In the app, make sure you check Action > Include Info Messages and Action > Include Debug Messages.

  • If the command line is more your thing, check out the stream subcommand to log. See its man page for details.

  • It’s really important to create your own log instances, with a unique subsystem, so you can find your messages in amongst all the others logged by the system.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"