steipete@mastodon.social
steipete@mastodon.social

📢 Apple's logs redact your debugging data as <private>. Here's what actually gets hidden, why old tricks don't work anymore, and the only reliable way to see your logs again. steipete.me/posts/2025/logging

|
Embed
Progress spinner
steipete@mastodon.social
steipete@mastodon.social

This blog post is partly targeted at humans, really serves as guide tho so Claude Code will create the correct profile for your app. Just give it the URL and it'll do what you want. I did "agent tests" to ensure it works.

|
Embed
Progress spinner
In reply to
pajp
pajp

@steipete you don’t need .mobileconfig, you can just drop plists into /Library/Preferences/Logging/Subsystems (this is in fact what happens when you install that mobileconfig file). This way you can add and remove the configs programmatically, like from a shell script.

|
Embed
Progress spinner
steipete@mastodon.social
steipete@mastodon.social

@pajp ohh TIL! I’ll try this.

|
Embed
Progress spinner
steipete@mastodon.social
steipete@mastodon.social

@pajp Love this, thank you! Post updated with your tweet!

|
Embed
Progress spinner
pajp
pajp

@steipete nice! the one gotcha seems to be that you have to write them atomically, in my scripts I write to a temporary file and then mv into place. Anyway, I learned the plist trick from the os_log(5) man page, although it only mentions the corresponding location in /System, but it documents the payload format.

|
Embed
Progress spinner