Skip to content

GuiminChu/FunnyLogger

Repository files navigation

FunnyLogger

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.

About

A simple, colorful logger for Xcode by Swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published