/SpaceLogger

Simple swift logger

Primary LanguageSwiftMIT LicenseMIT

CocoaPods Compatible Carthage Compatible

Usage

let log = makeLogger(tag: "Common")

func makeLogger(tag: String) -> Logger {
    var destinations: [LoggerDestination] = []
    #if DEBUG
    destinations.append(OSLoggerDestination(tag: tag))
    #endif
    return SpaceLogger(destinations: destinations)
}

log.info("Some useful info")
log.debug("Some info to debug")

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate SpaceLogger into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'SpaceLogger'

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate SpaceLogger into your Xcode project using Carthage, specify it in your Cartfile:

github "DmitriiChikovinskii/SpaceLogger"