Suppress CoreGraphics or Image I/O Console Messages

I'm using CoreGraphics and Image I/O in a MacOS command-line tool. My program works fine, but after the first drawing to a bitmap context there are messages output to the console like the following:

2022-12-20 16:33:47.824937-0500 RandomImageGenerator[4436:90170] Metal API Validation Enabled
AVEBridge Info: AVEEncoder_CreateInstance: Received CreateInstance (from VT)
AVEBridge Info: connectHandler: Device connected (0x000000010030b520)Assert - (remoteService != NULL) - f: /AppleInternal/Library/BuildRoots/43362d89-619c-11ed-a949-7ef33c48bc85/Library/Caches/com.apple.xbs/Sources/AppleAVEBridge/AppleAVEEncoder/AppleAVEEncoder.c l: 291
AVE XPC Error: could not find remote service
Assert - (err == noErr) - f: /AppleInternal/Library/BuildRoots/43362d89-619c-11ed-a949-7ef33c48bc85/Library/Caches/com.apple.xbs/Sources/AppleAVEBridge/AppleAVEEncoder/AppleAVEEncoder.c l: 1961
AVE ERROR: XPC failed
AVEBridge Info: stopUserClient: IOServiceClose was successful.

AVEBridge Error: AVEEncoder_CreateInstance: returning err = -12908

These messages get in the way of my own console output. How do I stop these messages from being displayed?

This post on StackOverflow (https://stackoverflow.com/questions/37800790/hide-strange-unwanted-xcode-logs) does not appear to be relevant to this issue.

For my macOS command tool, this goes away in macOS Sonoma. Your log looks identical to mine, but only occurred when writing to HEIF on macOS. Occurs in macOS Ventura 13.5 (22G74). Does not occur in macOS Sonoma 14.0 (23A5301h).

Suppress CoreGraphics or Image I/O Console Messages
 
 
Q