iOS SDK Custom NSLog

//  Modify to Prefix.pch
//  Prefix header
//
//  The contents of this file are implicitly included at the beginning of every source file.
//

#import <Availability.h>

#ifndef __IPHONE_3_0
#warning "This project uses features only available in iOS SDK 3.0 and later."
#endif

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

/************* Custom Log *************/
#ifndef CULog

#ifdef DEBUG
#   define CULog(fmt, ...) {NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);}

#else

#   define CULog(fmt, ...) {}

#endif

#endif


Learn More :