TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
we would like NSLog to be like this:
(ClassName MethodName) (SourceFileName:LineNumber) NSLog output
Add this line in your Podfile
pod 'ExtendNSLog', :git => 'https://github.com/ben46/ExtendNSLog.git'
Run following cmd in your ternimal
pod install
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
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