LinkedLog is a Xcode plugin that includes a Xcode PCH file template that adds the macros LLog
and LLogF
.
The LLog
macro will work like NSLog
but additionally prints the file name and line number of the call.
LinkedLog then parses the logs and adds links to the corresponding file and line.
/Library/Application Support/Developer/Shared/Xcode/Plug-ins/LinkedLog.xcplugin
.Alternatively, install it using Alcatraz plugin manager.
NSLog
calls with LLog
or LLogF
Whenever you want a log message, use LLog(@"string with format: %@", @"'format'");
just as NSLog
.
The messages will be omitted when building without DEBUG
build variable.
To force logs to also appear with production build configs use LLogF
instead.
If you want to contribute, send me a pull request.