Skip to content

bnsm/logging

Repository files navigation

Travis CI Carthage compatible pod compatible License Platforms Swift Version

Logging

A standard interface for message logging.

Working on various projects and frameworks you may need to use a separation betwen logic that generates messages and the logic that reports them. Logging provides a standard interface which could be easily extended or subclassed by any already existing logger.

Each message could provide file name, function name, line number and assigned a severity. The list of severities is inspired by RFC 5424.

Requirements

  • iOS 9.0+ / Mac OS X 10.10+ / watchOS 2.0+ / tvOS 9.0+
  • Swift 3.2 / 4.0+
    • Xcode 9.0+
  • Carthage 0.18+ (if you use)
  • CocoaPods 1.1.1+ (if you use)

Installation

Carthage

Installation using Carthage requires deployment target of iOS 8.0 or newer. Add the following line to your Cartfile:

Swift 4.x

github "martinbanas/logging" ~> "4.0.0"

Make sure to setup the carthage copy-frameworks Run Script build phase for Carthage dependencies in your project.

CocoaPods

To install logging with CocoaPods, add the following lines to your Podfile.

Swift 4.x

platform :ios, '9.0' # or platform :tvos, or platform :osx, or platform :watchos
use_frameworks!

pod 'Logging', :git => 'https://github.com/martinbanas/logging.git', :tag => '4.0.0'

License

MIT license. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published