Latest 0.2.9
Homepage https://github.com/vsdyachkov/Logger
License MIT
Platforms ios 6.0, requires ARC
Dependencies FlurrySDK
Authors

CI Status
Version
License
Platform

This library is created for simple unified logging successful and unsuccessful events.

Using any of these tools is optional, and can be adjusted

Usage

1) Add to your proj-Prefix.pch file line:

  #import "Logger.h"

2) Initialize module (ex. in AppDelegate) with:

initWithConsoleReporting: (BOOL)consoleReporting
      writeTimeInConsole: (BOOL)writeTimeInConsole
         debugDictionary: (NSDictionary*)debugDictionary
            flurryApiKey: (NSString*)flurryApiKey
            flurryUserID: (NSString*)flurryUserID
  • If you don’t want any logs in console and flurry, use initWithConsoleReporting: NO
  • If you need logging some key/values at each time, use debugDictionary: your_dictionary
  • If you don’t need flurry at all, use flurryApiKey: nil
  • If you don’t need flurry user identification use flurryUserID: nil

3) For logging event use one of these functions with (optional) debug information in NSString or NSDictionary

                     log: (eventType)type withDebugString: (NSString*)format, ...;
                     log: (eventType)type withDebugDict: (NSDictionary*)debugDict;

                     log: (eventType)type 
               withTitle: (NSString*)title 
                 message: (NSString*)message 
                   alert: (BOOL)isAlert 
             debugString: (NSString*)format, ...;

                     log: (eventType)type 
               withTitle: (NSString*)title 
                 message: (NSString*)message 
                   alert: (BOOL)isAlert 
               debugDict: (NSDictionary*)debugDict;

<To run the example project, clone the repo, and run pod install from the Example directory first.>

Requirements

iOS 4+ with ARC (including support iOS 8.1.1)

Installation

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

pod "Logger"

Author

Victor, [email protected]

License

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

Latest podspec

{
    "name": "Logger",
    "version": "0.2.9",
    "summary": "Multiple logger to console, flurry and alert (optional)",
    "description": "                        This library is created for simple unified logging successful and unsuccessful events.n                        Using any of these tools is optional, and can be adjustedn",
    "homepage": "https://github.com/vsdyachkov/Logger",
    "license": "MIT",
    "authors": {
        "Victor": "[email protected]"
    },
    "source": {
        "git": "https://github.com/vsdyachkov/Logger.git",
        "commit": "f57be99ff05474c150d6f48f161f92ea503489ec",
        "tag": "0.2.9"
    },
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/*",
    "dependencies": {
        "FlurrySDK": []
    }
}

Pin It on Pinterest

Share This