ExtendNSLog 1.0.1

ExtendNSLog 1.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.



  • By
  • Zhuoqian Zhou

we would like NSLog to be like this:

(ClassName MethodName) (SourceFileName:LineNumber) NSLog output

Intall

step1

Add this line in your Podfile

pod 'ExtendNSLog', :git => 'https://github.com/ben46/ExtendNSLog.git'

step2

Run following cmd in your ternimal

pod install

step3

Now add the ExtendNSLogFunctionality.h include to the prefix header file Prefix.pch within the #ifdef OBJC section.

#ifdef __OBJC__
  #import <UIKit/UIKit.h>
  #import <Foundation/Foundation.h>
  #import "ExtendNSLogFunctionality.h"
#endif

A Custom Log Example

int result = 20;
NSLog(@"Value of result : %d", result);

you should see something like this:

(­[AppDelegate application:didFinishLaunchingWithOptions:]) (AppDelegate.m:21) Value of result : 20