This framework lets you send log events to Jam for iOS so that they can be associated with your Jam.
- iOS 15.0+
Add the following to your Package.swift:
dependencies: [
.package(url: "https://github.com/jamdotdev/jam-ios-log.git", from: "1.0.0")
]Alternatively, you can add the package directly via Xcode.
import JamLog
JamLog.debug("Hello world!")Also supports info, warn, and error.
You can integrate with SwiftLog by importing JamSwiftLog and bootstraping the logging system:
import JamSwiftLog
import Logging
LoggingSystem.bootstrap { label in
JamLogHandler(label: label)
}Alternatively, you can add JamLog to your existing logging system by using the MultiplexLogHandler. Assuming you are already using the StreamLogHandler:
import JamSwiftLog
import Logging
LoggingSystem.bootstrap { label in
MultiplexLogHandler([
StreamLogHandler.standardOutput(label: label),
JamLogHandler(label: label)
])
}JamLog is also available as a React Native Expo module.