Latest0.2.1
Homepagehttps://github.com/RudyB/Houston
LicenseMIT
Platformsios 8.0, watchos 2.0, tvos 9.0, osx 10.10
Authors

Houston

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

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

Requirements

  • Xcode 8.3+
  • iOS 8.0+
  • watchOS 2.0+
  • macOS 10.10+
  • Swift 4.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

Houston

Contribute

Want to learn Swift and help contribute? Read Here

License

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

Latest podspec

{
    "name": "Houston",
    "version": "0.2.1",
    "summary": "A lightweight logger in Swift for iOS",
    "description": "Houston is a lightweight logger in Swift.",
    "homepage": "https://github.com/RudyB/Houston",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "RudyB": "[email protected]"
    },
    "source": {
        "git": "https://github.com/RudyB/Houston.git",
        "tag": "0.2.1"
    },
    "social_media_url": "https://twitter.com/RudyB__",
    "platforms": {
        "ios": "8.0",
        "watchos": "2.0",
        "tvos": "9.0",
        "osx": "10.10"
    },
    "source_files": "Source/*.swift",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This