Persisted log entries disappeared?

Hi!

I was able to successfully persist my debug log entires using the OSLogPreferences key in my Info.plist and retrieve the logs from my iPhone using log collect.

This worked to get log messages created when my app executed a background task tonight (2026-01-20 00:20). But log Debug and Default log messages from a normal run yesterday (2026-01-19 15:34) disappeared.

I can query for the missing messages in the log archive I created yesterday but they are missing in the log archive I created today covering also yesterday. I had invoked:

% sudo log collect --device-name "<my device name>" --last 25h --output /tmp/system_logs.logarchive

...

%sudo log show /tmp/system_logs.logarchive --debug --info --predicate 'subsystem=="com.example.MyApp"'

Is this expected and/or is there anything I could do to persist the logs for a longer period?

For reference, that's what I have added to my Info.plist for the debug build configuration so far:

    <key>OSLogPreferences</key>
    <dict>
        <key>com.example.MyApp</key>
        <dict>
            <key>DEFAULT-OPTIONS</key>
            <dict>
                <key>Level</key>
                <dict>
                    <key>Enable</key>
                    <string>Debug</string>
                    <key>Persist</key>
                    <string>Debug</string>
                </dict>
                <key>Enable-Private-Data</key>
                <true/>
            </dict>
        </dict>
    </dict>
Persisted log entries disappeared?
 
 
Q