Dave DeLong on Nostr: There is zero benefit to using the OSLog APIs in your own app. The logs are hard to ...
There is zero benefit to using the OSLog APIs in your own app. The logs are hard to get in your own app, and *impossible* to get from previous app runs. You can't get logs from a device except via a sysdiagnose, and no developer wants to walk a customer through that arduous, privacy-invasive process.
OSLog is an API that Apple made to solve Apple's problems. It is not a developer-friendly API.
Use the Logging package instead:
https://github.com/apple/swift-loghttps://twit.social/@kharrison/112253393743175498Published at
2024-04-11 23:34:23Event JSON
{
"id": "5982043b48f7920a06953930558531a58a6a581314206e84305f48ca95b84c11",
"pubkey": "ec75b63e3a9cda85714089f8d92bf564cb2bbcf14408581463b080ec98b9e536",
"created_at": 1712871263,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/davedelong/statuses/112254731118071587",
"activitypub"
]
],
"content": "There is zero benefit to using the OSLog APIs in your own app. The logs are hard to get in your own app, and *impossible* to get from previous app runs. You can't get logs from a device except via a sysdiagnose, and no developer wants to walk a customer through that arduous, privacy-invasive process.\n\nOSLog is an API that Apple made to solve Apple's problems. It is not a developer-friendly API.\n\nUse the Logging package instead: https://github.com/apple/swift-log\n\nhttps://twit.social/@kharrison/112253393743175498",
"sig": "98030967a5eb9a7cdad006fc9d2e9f60e0819a607065adfbff682ddd6c5e6a9cafeebd5343234bf418bf8f91b61117c0794b8a69c59822f83b3643ef73c4c12f"
}