A minimal command line app is exhibiting the same unexpected behavior, and there's not much left to make mistakes in.
Hopefully, someone will point out an appallingly simple error, else, I'll wrap this up into an FB.
Source
import Foundation
import OSLog
let loggingTest = Logger(subsystem: "com.ramsaycons", category: "LoggingTest")
loggingTest.log("info: \(Bundle.main.infoDictionary!)")
Info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>OSLogPreferences</key>
<dict>
<key>com.ramsaycons</key>
<dict>
<key>DEFAULT-OPTIONS</key>
<dict>
<key>Enable-Private-Data</key>
<true/>
</dict>
</dict>
</dict>
</dict>
</plist>
Xcode run output (whitespace modified for readability):
info: [
"DTPlatformBuild": , "LSMinimumSystemVersion": 14.5, "DTXcode": 1540,
"CFBundleSupportedPlatforms": <__NSArrayM 0x600000e58720>(MacOSX),
"DTSDKName": macosx14.5, "DTCompiler": com.apple.compilers.llvm.clang.1_0,
"DTXcodeBuild": 15F31d, "DTSDKBuild": 23F73, "DTPlatformName": macosx,
"DTPlatformVersion": 14.5, "BuildMachineOSBuild": 23F79,
"OSLogPreferences": {
"com.ramsaycons" = {
"DEFAULT-OPTIONS" = {
"Enable-Private-Data" = 1;
};
};
}]
Program ended with exit code: 0
Console.app output:
default 17:16:33.869184-0400 LoggingTest info: <private>