Console in Xcode 16

Haven’t updated in a while so coming from Xcode 14 to 16.2. I see the console output is different. How can I use log “TextToLog” in my code and get an output. Is there a setting someplace I need to turn on. Also I get warnings on starting my app…
WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.

-[NSApplication(NSWindowRestoration) restoreWindowWithIdentifier:state:completionHandler:] Unable to find className=(null)

Looks like it’s broken…

Xcode 16’s logging function by using AppleScript “log” command does not work.
We can use NSLog to output message to system log.

But this is AppleScript. So, we can output log messages to other application.
We can output various messages to scriptable text editors.

This project output log messages to BBEdit.

New version is here.
http://piyocast.com/as/archives/17455

Now we can output various object information to Xcode console.