I have a Swift 3 Cocoa application that uses Apple's Unified Logging, like this: -
    import os
    class MyClass
    {
        @available(OSX 10.12, *)
        static let scribe = OSLog(subsystem: "com.mycompany.myapp", category: "myapp")
        func SomeFunction(){
  
            if #available(OSX 10.12, *){
                os_log("Test Error Message", log: MyClass.scribe, type: .error)
            }
            if #available(OSX 10.12, *){
                os_log("Test Info Message", log: MyClass.scribe, type: .info)
            }
            if #available(OSX 10.12, *){
                os_log("Test Debug Message", log: MyClass.scribe, type: .debug)
            }
        }
    }Within the Console application, both
Include Info Messages and Include Debug Messages are turned on.When
os_log is called, only the error type message is visible in the Console application.Using Terminal, with the command, all message types are visible in the Terminal output: -
sudo log stream --level debugI've tried running the Console app as root, via sudo from the command line and the same issue occurs; no debug or info messages can be seen, even though they're set to being turned on under the Action menu.
Setting system-wide logging to be debug, has no effect on the Console application output:
sudo log config --mode level:debugPlease can someone tell me what I'm missing and how can I view debug and info messages in the Console application?