m3rkus / RSLog

Lightweight thread-safe logging framework implemented in Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RSLog

Lightweight thread-safe logging framework implemented in Swift.

Features

  • Emoji and text log levels for visual perception
  • Filename and line number logging
  • Function name logging
  • Three log levels: Info, Warning, Error
  • Works only for debug builds

Example output

Requirements

  • iOS 8 or any higher version.
  • Xcode 9 or any higher version.
  • Swift 4.0 or any higher version.

Installation

CocoaPods

pod 'RSLog'

Usage

// Shortcut for the log singleton
let log = RSLog.shared

log.info("This is an info message")
log.warning("This is a warning message")
log.error("This is an error message")

About

Lightweight thread-safe logging framework implemented in Swift

License:MIT License


Languages

Language:Swift 85.8%Language:Ruby 9.0%Language:Objective-C 5.1%