Swiftpack.co - RudyB/Houston as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
RudyB/Houston
A lightweight logging framework for iOS
.package(url: "https://github.com/RudyB/Houston.git", from: "0.2.6")

Build Status Coverage Status Documentation CocoaPods Compatible CocoaPods CocoaPods Platforms Swift License

Houston is a simple, lightweight logging library for iOS. It is meant to allow easy logging of application data to multiple endpoints (console, stdout, http, etc). Inspired by corey-rb

Features

  • ☑ Single Setup
  • ☑ Log Strings & Objects
  • ☑ Multiple Output Destinations
  • ☑ Formatting Customization
  • ☑ iOS, watchOS, tvOS, macOS compatibility
  • ☑ Log to File
  • ☐ Log to HTTP endpoint
  • Complete Documentation

Requirements

  • Xcode 8.3+
  • iOS 8.0+
  • watchOS 2.0+
  • macOS 10.10+
  • Swift 5.0+

Installation

To integrate Houston into your project, add the following to your project's Podfile

pod 'Houston'

Carthage

Coming Soon.

Swift Package Manager

Coming Soon.

Basic Usage (Quick Start)

In each source file,

import Houston

In your AppDelegate (or other global file), configure log destinations

let consoleDestination = ConsoleDestination()
Logger.add(destination: consoleDestination)

Basic Logging

You can log just about anything.

You can log simple strings:

Logger.verbose("View Loaded")
Logger.warning("Yikes something is not right")
Logger.error("Fatal Error")

Or you can log objects:

Logger.info(Date())
Logger.debug(["Yellow", "Blue", 3])

Output

Contribute

Want to learn Swift and help contribute? Read Here

License

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

GitHub

link
Stars: 6
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Related Packages

Release Notes

0.2.4
2 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics