Setting up logging in iOS

The JamLogarrow-up-right framework lets you send log events to Jam for iOSarrow-up-right so that they can be associated with your Jamarrow-up-right.

Supported Platforms

  • iOS 15.0+

Quick Start

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 Xcodearrow-up-right.

Usage

import Jam

Jam.debug("Hello world!")

Also supports info, warn, and error.

SwiftLog

You can integrate with SwiftLogarrow-up-right by importing JamSwiftLog and bootstraping the logging system:

Alternatively, you can add JamLog to your existing logging system by using the MultiplexLogHandler. Assuming you are already using the StreamLogHandler:

React Native

JamLog is also available as a React Native Expo modulearrow-up-right.

Last updated

Was this helpful?