Latest 0.1.1
Homepage https://github.com/GuiminChu/FunnyLogger
License MIT
Platforms ios 8.0, tvos 9.0, osx 10.9, requires ARC
Authors

Swift 2.2
Platforms OS X | iOS | tvOS | watchOS
License MIT

CocoaPods Version

A simple, colorful logger for Xcode.

Screenshot

Screenshot

Requirements

  • You need to install XcodeColors plugin to enable color in the Xcode console, otherwise you will see some messed-up code.

  • If you want to open the specific file and highlight the line when you click on the hyperlink in the console, you need to install KZLinkedConsole plugin.

Suggestion:The best way of installing plugin is by Alcatraz. Install Alcatraz followed by the instruction, restart your Xcode and press ⇧⌘9. You can find XcodeColors and KZLinkedConsole in the list and click the icon on left to install.

Installation

CocoaPods

You can use Cocoapods to install FunnyLoggerby adding it to your Podfile:

target 'MyApp' do
    pod 'FunnyLogger'
end

Manually

Clone the repo and add FunnyLogger.swift to your project.

Usage

First:

import FunnyLogger

And, Use directly:

FunnyLogger.v("Normal")
FunnyLogger.d("Normal")
FunnyLogger.i("Normal")
FunnyLogger.w("Normal")
FunnyLogger.e("Normal")

FunnyLogger.v(.Flower, message: "Flower")
FunnyLogger.d(.Flower, message: "Flower")
FunnyLogger.i(.Flower, message: "Flower")
FunnyLogger.w(.Flower, message: "Flower")
FunnyLogger.e(.Flower, message: "Flower")

License

FunnyLogger is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "FunnyLogger",
    "version": "0.1.1",
    "summary": "A logger for Xcode by Swift.",
    "homepage": "https://github.com/GuiminChu/FunnyLogger",
    "license": "MIT",
    "authors": {
        "GuiminChu": "[email protected]"
    },
    "social_media_url": "http://weibo.com/cookcode",
    "platforms": {
        "ios": "8.0",
        "tvos": "9.0",
        "osx": "10.9"
    },
    "source": {
        "git": "https://github.com/GuiminChu/FunnyLogger.git",
        "tag": "0.1.1"
    },
    "source_files": "FunnyLogger.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This