Swiftpack.co - sargapman/LogStore as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by sargapman.
sargapman/LogStore 5.3.0
A tiny package to make log output accessible from within an iOS app
⭐️ 1
🕓 21 weeks ago
.package(url: "https://github.com/sargapman/LogStore.git", from: "5.3.0")

LogStore

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

Usage:

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

setLoggingAppName("MyAppName")

GitHub

link
Stars: 1
Last commit: 21 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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