Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.
/ LinkedLog Public archive

LinkedLog is a Xcode plugin that includes a Xcode PCH header file template that adds the macros `LLog` and `LLogF` and parses their output to link from the console to the corresponding file and line.

License

Notifications You must be signed in to change notification settings

julian-weinert/LinkedLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinkedLog Xcode Plugin

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.

Status

Stories ToDo Stories in Progress Stories Done

Build Status LinkedLog chat

Install

  1. Build the project to install the plugin. The plugin gets installed in /Library/Application Support/Developer/Shared/Xcode/Plug-ins/LinkedLog.xcplugin.
  2. Restart Xcode for the plugin to be activated.

Alternatively, install it using Alcatraz plugin manager.

Configuration

  • In Xcode select add files to the project.
  • Select the PCH File+LLog file template from the LinkedLog templates section.
  • Navigate to your build settings, search for prefix and add the created file to "Prefix header"
  • Replace all NSLog calls with LLog or LLogF

Usage

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.

Screenshot

LinkedLog

Bugs and limitations

Pull requests

If you want to contribute, send me a pull request.

Improvements

Stories ToDo

About

LinkedLog is a Xcode plugin that includes a Xcode PCH header file template that adds the macros `LLog` and `LLogF` and parses their output to link from the console to the corresponding file and line.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published