Platform

Platform

  • Getting Started
  • API

›IOS SDK

Getting Started

  • Create Your App

Quick Starts

  • 555 Samples

Mobile SDK (v1.0)

  • Overview
  • IOS SDK

    • Getting started
    • Installation Guide
    • How to do user authentication
    • How to subscribe for notifications
    • How to initiate or accept PSTN call
    • How to initiate or accept video call
    • How to set log level for SDK
    • Release Notes

    Android SDK

    • Getting started
    • Installation Guide
    • How to do user authentication
    • How to subscribe for notifications
    • How to initiate or accept PSTN call
    • How to initiate or accept video call
    • How to set log level for SDK
    • Release Notes

Mobile SDK (v2.0)

  • Overview
  • IOS SDK

    • Getting started
    • Installation Guide
    • How to do user authentication
    • How to subscribe for notifications
    • How to initiate or accept PSTN call
    • How to initiate or accept VIDEO call
    • How to initiate or join ANONYMOUS VIDEO call
    • Release Notes
    • Reference code - How to initiate or accept PSTN Call
    • Reference code - How to initiate or accept Video Call
    • Reference code - How to initiate or join Anonymous Video Call

    Android SDK

    • Getting started
    • Installation Guide
    • How to do user authentication
    • How to subscribe for notifications
    • How to initiate or accept PSTN call
    • How to intiate or accept Video Call
    • How to intiate or accept ANONYMOUS VIDEO Call
    • Release Notes
    • Reference code - How to initiate or accept PSTN Call
    • Reference code - How to initiate or accept Video Call
    • Reference code - How to initiate or join Anonymous Video Call

    React Native SDK

    • Getting started
    • Installation Guide
    • How to do user authentication
    • How to subscribe for notifications
    • How to initiate or accept PSTN call
    • Release Notes

WebRTC JS SDK

  • Overview
  • Getting Started
  • How to do user authentication
  • How to subscribe for notifications
  • How to initialize SDK
  • How to initiate or accept PSTN call
  • How to initiate or accept video call
  • How to create a screen share session
  • Release Notes

Logging

In order to provide fast and flexible logging, SDK uses Cocoa Lumberjack.
There are the 4 log levels:

  • Error
  • Warning
  • Info
  • Verbose

In addition to this, there is a Trace flag that can be enabled. When tracing is enabled, it spits out the methods that are being called. Tracing is separate from the log levels. For example, one could set the log level to warning, and enable tracing.
All logging is asynchronous, except errors. To use logging within your own custom files, follow the steps below.

  1. Import IrisLogging header in the implementation file.
     import "IrisLogging.h"
    
  2. Define logging level in the implementation file.
    Log levels: off, error, warn, info, verbose
    static const int irisLogLevel = IRIS_LOG_LEVEL_VERBOSE;
    
    To enable tracing,
    static const int irisLogLevel = IRIS_LOG_LEVEL_INFO | IRIS_LOG_FLAG_TRACE;
    
  3. Replace NSLog statements with IRISLog statements according to the severity of the message.
    NSLog(@"Fatal error, no key found!"); -> IRISLogError(@"Fatal error, no key found!");
    
    IRISLog has the same syntax as NSLog. This means you can pass multiple variables to it, just like NSLog. You may optionally choose to define different log levels for debug and release builds.
    #if DEBUG
       static const int irisLogLevel = IRIS_LOG_LEVEL_VERBOSE;
    #else
       static const int irisLogLevel = IRIS_LOG_LEVEL_WARN;
    #endif
    
    Xcode projects created with Xcode 4 automatically define DEBUG via the project's preprocessor macros. If the project is created with previous versions of Xcode, you may need to add the DEBUG macro manually.
← How to initiate or accept video callRelease Notes →
Docs
Getting StartedGuidesAPI Reference
More
BlogGitHub
555 Platform
Copyright © 2024 555 Platform ™
555docs-v0.0.94