Swift
Lyrelog for Apple apps
One Swift package for iPhone, iPad, Mac, Apple TV, Apple Watch and Vision Pro. Crashes and hangs arrive on the next launch, events wait on disk while offline, and App Attest proves they came from your app.
import Lyrelog @main struct MyApp: App { init() { Lyrelog.start(Lyrelog.Configuration( // ingest-only: it can append events, never read them apiKey: "lyr_ing_..." )) } var body: some Scene { WindowGroup { ContentView() } } }
Version 1.0.0. iOS 16, macOS 13, tvOS 16, watchOS 9, visionOS 1, Swift 6. No dependencies.
What it does on Swift
Start it and these come with it. Where the platform can't tell by itself, it's a call or a few lines, all in the guide.
- On its ownCrashes and uncaught errorsCaught in the app's own process, sent on the next launch
- On its ownHangsHangs, CPU and disk overuse, slow launches, on the same platforms
- A call or a few linesScreensLyrelog.screen or .lyrelogScreen: then every event carries it
- On its ownSessionsA new one after 30 minutes away
- On its ownEnvironment, told apartDevelopment, TestFlight or production, from the build and StoreKit
- On its ownEvents wait when offlineOn disk, up to 20 MB and 7 days
- On its ownVerified eventsApp Attest, on a real iPhone, iPad or Apple Watch
Swift, in practice
What the guide says to keep in mind on this platform.
- Upload each build's dSYMs with the CLI and crash frames read as your code.
- URLSession.shared.loggedData(for:) records a request without its query string, headers or body.
- A privacy manifest ships with the package.
- The Swift guide
Same project, every platform
Your app, your website and your servers send to one project, and a person's events line up across all of them.
- AndroidKotlin and Java apps
- React NativeiOS and Android, New Architecture
- FlutteriOS and Android
- BrowsersJavaScript and TypeScript websites
- NodeServers, workers and functions
- PythonDjango, FastAPI, workers and scripts
- GoServices and command-line tools
- JVMJava and Kotlin servers, Spring and Ktor
- All platforms
See it with your own app's events
Sign up with GitHub, Google or Apple. Your organization starts on Free; move it to Pro whenever you want.