> ## Documentation Index
> Fetch the complete documentation index at: https://jam.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting Up Logging in iOS

> Send your iOS app's log events to Jam with the JamLog framework so every bug report carries your app's context.

The JamLog framework lets you send log events to Jam for iOS so that they can be associated with your Jam.

### Supported Platforms

* iOS 15.0+

### Quick Start

Add the following to your `Package.swift`:

```swift theme={"theme":"css-variables"}
dependencies: [
  .package(url: "https://github.com/jamdotdev/jam-ios-log.git", from: "1.0.0")
]
```

Alternatively, you can add the package directly via Xcode.

### Usage

```swift theme={"theme":"css-variables"}
import Jam

Jam.debug("Hello world!")
```

Also supports `info`, `warn`, and `error`.

### SwiftLog

You can integrate with SwiftLog by importing JamSwiftLog and bootstrapping the logging system:

```swift theme={"theme":"css-variables"}
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`:

```swift theme={"theme":"css-variables"}
import JamSwiftLog
import Logging

LoggingSystem.bootstrap { label in
  MultiplexLogHandler([
    StreamLogHandler.standardOutput(label: label),
    JamLogHandler(label: label)
  ])
}
```

### React Native

JamLog is also available as a [React Native Expo module](https://github.com/jamdotdev/expo-jam-log).
