Latest 1.2.3
Homepage https://github.com/ArtSabintsev/PrintlnMagic
License MIT
Platforms ios 8.0, requires ARC
Authors

Magic

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


Background

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.

Installation

CocoaPods

pod 'Magic'

Carthage

github "ArtSabintsev/Magic"

Swift Package Manager

.Package(url: "https://github.com/ArtSabintsev/Magic.git", majorVersion: 2)

Manual

Setup

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

Example

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

Latest podspec

{
    "name": "PrintlnMagic",
    "version": "1.2.3",
    "summary": "An alternative for Swift's println() along the lines of DLog.",
    "description": "If you're like me, you miss seeing the filename, method name, and/or line number in your println() statements in your Swift projects.nnFear not, PrintlnMagic is here to bring you back to the goold old days of DLog.nSiren is actively maintained by Arthur Sabintsev.",
    "homepage": "https://github.com/ArtSabintsev/PrintlnMagic",
    "license": "MIT",
    "authors": {
        "Arthur Sabintsev": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/ArtSabintsev/PrintlnMagic.git",
        "tag": "1.2.3"
    },
    "source_files": "PrintlnMagic.swift",
    "requires_arc": true,
    "deprecated": true,
    "deprecated_in_favor_of": "Magic"
}

Pin It on Pinterest

Share This