User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







objective-c:examples:xlog

XLog for Objective-C

add this code to your App-Prefix.pch

/**
 XLog a working version 
 source: http://code-reference.com
 */
 
/* remove the // to turn off Logs */
//#define RELEASE_MODE 1
 
#ifdef RELEASE_MODE
#define XLog(...)
#else
 
#define XLog(fmt, ...) NSLog(@"%s line:%d " fmt, __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#endif

output of XLog

  2013-03-23 19:45:59.098 cppApp[28436:c07] -[ViewController tableView:cellForRowAtIndexPath:] line:101 indexpath 0

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
objective-c/examples/xlog.txt · Last modified: 2024/02/16 01:06 (external edit)

Impressum Datenschutz