Logger module for iOS/MacOS written in Swift
Swift
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Logger.xcodeproj
Logger
images
.gitignore
.travis.yml
LICENSE
README.md

README.md

Logger

Build Status Carthage compatible

This is Logger Component for iOS/MacOS.

How to use

Install XcodeColors(Plug-in), import this library and write as below, and run project. HowToUse.png

Then, you can confirm log with file name, line number, method name as below. XcodeColorsLOG

If you don't want to install XcodeColors, you can update settings as below.

  Logger.useXcodeColors = false

And you can confirm log as below.

PlainLOG

If you want to stop logging, update shouldOutput as below.

  Logger.shouldOutput = false

Requirements

  • iOS 9.0+, OS X 10.10+
  • Xcode 8.0 or above

Logger is now supporting Swift3. If you want to use with Swift2.2, please use Swift2.2 branch.

Installation

Logger supports multiple platform(iOS/MacOS), and supports only Carthage.

Installation with Carthage

To integrate Logger into your Xcode project using Carthage, specify it in your Cartfile:

github "nerd0geek1/Logger"

Then, run the following command:

$ carthage update

License

This software is Open Source under the MIT license, see LICENSE for details.