LogDog is a powerful logging and monitoring SDK for iOS applications that helps you track network requests, events, logs, and analytics in real-time.
For complete documentation, visit the LogDog Documentation Portal.
- Network Monitoring: Automatically capture URLSession requests and responses
- Event Tracking: Log custom events with detailed metadata
- Log Collection: Capture application logs across different log levels
- Real-time Dashboard: View all captured data in the LogDog dashboard
- Minimal Performance Impact: Designed for efficiency with minimal overhead
target 'log-dog-ios-boilerplate' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
pod 'LogDogSDK', '1.4.420'
end
pod install
Note: If problems with cocoa pods occur try: pod 'LogDogSDK', :podspec => 'https://raw.githubusercontent.com/modrena/log-dog-ios-sdk/v{VERSION}/LogDogSDK.podspec'
Add it directly in Xcode using File > Swift Packages > Add Package Dependency
.
To update to a new version open your PackageDependencies
and specify the desired version
Then run:
xcodebuild -resolvePackageDependencies -disablePackageRepositoryCache
- Initialize LogDog in your AppDelegate:
import LogDog
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
let config = LogDogConfig(logs: true, network: true, events: true)
LogDog.initialize( apiKey: "YOUR_API_KEY", config: config)
LogDog.i("Hello from LogDog!")
return true
}
}
- Log events:
// Log a simple event
LogDog.logEvent("button_click", metadata: ["button_id": "login_button"])
// Log with different levels
LogDog.d("Debug message")
LogDog.i("Info message")
LogDog.w("Warning message")
LogDog.e("Error message")