Latest 0.0.1
Homepage https://github.com/iosphere/ISHLogDNA
License MIT
Platforms ios 9.0
Authors

LogDNA for iOS

This micro-framework supports remote logging via LogDNA on
iOS. The framework itself is written in ObjC for easy integration in Swift and
ObjC apps.

Requires a deployment target of iOS 9 and above.

Sample

Objective-C

[ISHLogDNAService setupWithIngestionKey:ingestionKey
                               hostName:hostName
                                appName:appName];

// Send message including custom meta data (the dictionary must be encodable into JSON)
ISHLogDNAMessage *m;
m = [ISHLogDNAMessage messageWithLine:@"Sample app started"
                                level:ISHLogDNALevelInfo
                                 meta:@{@"anyKey" : @[@1, @42]}];
[ISHLogDNAService logMessages:@[m]];

Swift

ISHLogDNAService.setup(withIngestionKey: "", hostName: "", appName: "")

let message = ISHLogDNAMessage(line: "Sample app started", level: .info, meta: [ "myField" : 42 ])
ISHLogDNAService.logMessages([message]);

Usage

Simply include the following files in your project:

  • ISHLogDNAService.h
  • ISHLogDNAService.m

For Swift: ensure to include #import "ISHLogDnaService.h"
in your bridging header.

ISHLogDNAService uses the AdSupport framework
to use a sensible default for the enabled flag. By default logging is only
enabled for users with isAdvertisingTrackingEnabled.

Latest podspec

{
    "name": "ISHLogDNA",
    "version": "0.0.1",
    "summary": "This micro-framework supports remote logging via LogDNA on iOS.",
    "description": "This micro-framework supports remote logging via LogDNA on iOS. The framework itself is written in ObjC for easy integration in Swift and ObjC apps.nRequires a deployment target of iOS 9 and above.",
    "homepage": "https://github.com/iosphere/ISHLogDNA",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Preston Farr": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/xavisavvy/ISHLogDNA.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "ISHLogDNAService",
        "Classes/**/*.{h,m}"
    ]
}

Pin It on Pinterest

Share This