Flannel is a Swift package currently in development, designed to let you view OSLog entries directly within your app, providing an experience similar to Xcode’s native console.
To integrate using Apple's Swift Package Manager, add the following as a dependency to your Package.swift:
dependencies: [
.package(url: "https://github.com/JohnBehnke/Flannel.git", from: "1.0.0")
]Check out the example application to see Flannel in action. Simply open the Example/Example.xcodeproj and run the "Example" scheme. Only iOS is curently supported.
Flannel provides a LogView component. To monitor logs emitted from your app’s main bundle identifier, you can simply initialize it with LogView(). If you need to track logs from multiple subsystems, you can initialize it with LogView(subsystems: ['com.example.foo', 'com.example.bar']).