Magic 3.0.3

Magic 3.0.3

LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Arthur Ariel Sabintsev.

Magic 3.0.3

  • By
  • Arthur Ariel Sabintsev


A Swift alternative for Objective-C’s DLog macro.


If you’re like me, you miss seeing the filename, method name, and/or line number in your print statements in your Swift projects.

Fear not, Magic is here to bring you back to the good old days of DLog.

This extension was previously known as PrintlnMagic.


Swift Package Manager

.Package(url: "", majorVersion: 3)


Replace all the print() statements in your project with magic().


Before Magic, your console will display the following from print():

This is a test string.

After Magic, your console will display the following from magic():

ViewController.viewDidLoad()[17]: This is a test string.

// Where:
//     ViewController is the filename
//     viewDidLoad() is the name of the function
//     [17] is the line number

Created and maintainted by

Arthur Ariel Sabintsev