CocoaPods trunk is moving to be read-only. Read more on the blog, there are 10 months to go.

InstalogIOS 1.0.1

InstalogIOS 1.0.1

Maintained by Chiziaruhoma Ogbonda.



  • By
  • zfinix

InstalogIOS

CI Status Version License Platform

InstalogIOS is a powerful SDK for iOS applications that provides crash reporting, event logging, and user feedback collection capabilities.

Table of Contents

Installation

CocoaPods

InstalogIOS is available through CocoaPods. To install it, add the following line to your Podfile:

pod 'InstalogIOS'

Swift Package Manager

InstalogIOS is also available through Swift Package Manager. To install it, add the following to your Package.swift file:

dependencies: [
    .package(url: "https://github.com/instalog-dev/instalog-ios.git", .exact("1.0.0"))
]

Or in Xcode:

  1. File > Add Packages...
  2. Enter package URL: https://github.com/instalog-dev/instalog-ios.git
  3. Select "Exact Version" and enter "1.0.0"
  4. Click "Add Package"

Getting Started

Initialize the SDK

import InstalogIOS

// In AppDelegate
func application(_ application: UIApplication, 
                 didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    Instalog.shared.initialize(key: "your-api-key")
    return true
}

Basic Usage

// Set user ID
Instalog.shared.identifyUser("user123")

// Log an event
let log = InstalogLogModel(
    level: .info,
    message: "User completed onboarding"
)
Instalog.shared.logEvent(log: log)

// Show feedback modal
Instalog.shared.showFeedbackModal()

Features

Crash Reporting

  • Automatic crash detection
  • Manual crash reporting
  • Crash simulation for testing

Event Logging

  • Multiple log levels (debug, info, warning, error)
  • Custom metadata support
  • Automatic device information collection

User Feedback

  • In-app feedback modal
  • Screenshot attachment (up to 4 images)
  • Programmatic feedback submission

Example

To run the example project:

  1. Clone the repo
  2. Run pod install from the Example directory
  3. Open the workspace in Xcode

The example project demonstrates:

  • SDK initialization
  • Event logging
  • Crash reporting
  • User feedback collection

Author

Ogbonda Chiziaruhoma
[email protected]

License

InstalogIOS is available under the MIT license. See the LICENSE file for more info.