Swiftpack.co - Package - shogo4405/Logboard
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

Logboard

Platform Language CocoaPods GitHub license

Simple logging framework for your framework project.

Usage

let logger = Logboard.with("identifier")

logger.level = .trace
logger.trace("trace")
logger.debug("debug")
logger.info("hoge")
logger.warn("sample")
logger.error("error")

Requirements

- iOS OSX tvOS watchOS XCode Swift CocoaPods Carthage
2.2.0+ 9.0+ 10.9+ 9.0+ 2.0 12.0+ 5.3 1.3.0 0.31.0+
2.1.0+ 8.0+ 10.9+ 9.0+ 2.0 11.0+ 5.0 1.3.0 0.31.0+

Installation

*Please set up your project Swift 5.0

CocoaPods

source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!

def import_pods
pod 'Logboard', '~> 2.2.2'
end

target 'Your Target'  do
platform :ios, '9.0'
import_pods
end

Carthage

github "shogo4405/Logboard" ~> 2.2.2

Appenders

ConsoleAppender

Use print function. You can see XCode's console.

let logger = Logboard.with("identifier")
let console = ConsoleAppender()
logger.appender = console

MultiAppender

let logger = Logboard.with("identifier")
let multi = MultiAppender()
multi.appenders.append(ConsoleAppender())
multi.appenders.append(SocketAppender())
logger.appender = multi

SocketAppender

let logger = Logboard.with("identifier")
let socket = SocketAppender()
socket.connect("toHost", 22222)
logger.appender = socket

License

BSD-3-Clause

Github

link
Stars: 15

Releases

Support Xcode12.0 - 2020-09-11T15:54:45

- 2020-06-20T06:04:19

- 2019-09-15T14:36:49

- 2019-09-15T14:34:15

- 2019-09-15T12:23:43

- 2019-09-15T12:23:33

- 2018-11-21T07:28:02

- 2018-11-21T07:27:53

- 2018-11-21T07:27:44

- 2018-08-03T17:14:57

- 2018-08-03T17:14:49

- 2018-08-03T17:14:40

- 2018-08-03T17:14:23

- 2018-08-03T17:14:12

- 2018-08-03T17:13:57

- 2018-08-03T17:13:46

- 2018-08-03T17:13:31

- 2018-08-03T17:13:23