Swiftpack.co - sargapman/LogStore as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
A tiny package to make log output accessible from within an iOS app
.package(url: "https://github.com/sargapman/LogStore.git", from: "4.0.0")


A tiny package to make log output accessible from within an iOS app.

Based on Appendix 1. Debugging on the Go, of Build Location-Based Projects for iOS, by Dominik Hauser.

Some parts were filled in or improved by inspection of the LogStore repo at https://github.com/dasdom/LogStore


printLog is a globally available function to print to the debug console & add an entry to the stored log.

import LogStore

printLog("something to log")

The log is stored in the users home directory of the iOS file system.

To view the log within your application there is a recommendations in Debugging on the Go, Appendix 1. When the log is viewed there are buttons for Clear Log and Email Log.

The log can be emailed as an attachment named LogStore log.json. The name of the app that is using the LogStore package can be included in the email. Set the app name as:

import LogStore



Stars: 0
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics