Swiftpack.co - shogo4405/Logboard as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by shogo4405.
shogo4405/Logboard 2.3.0
Simple logging framework for your framework project.
⭐️ 22
🕓 20 weeks ago
.package(url: "https://github.com/shogo4405/Logboard.git", from: "2.3.0")

Logboard

Platform Language CocoaPods GitHub license

Usage

let logger = LBLogger.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
2.3.0+ 11.0+ 10.9+ 11.0+ 4.0 14.0+ 5.3
2.2.0+ 9.0+ 10.9+ 9.0+ 2.0 13.0+ 5.3

Installation

CocoaPods

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

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

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

Carthage

github "shogo4405/Logboard" ~> 2.3.0

Appenders

ConsoleAppender

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

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

MultiAppender

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

SocketAppender

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

Network Console

iOS, macOS, tvOS, watchOS Debugging Tool, Logging console via Network. screenshot

Download

git clone https://github.com/shogo4405/Logboard.git
cd Logboard/Console
carthage update --platform macOS --use-xcframewokrs

Build

Open xcode 'Console' and [Product] -> [Archive].

SocketAppender

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

License

BSD-3-Clause

GitHub

link
Stars: 23
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

2.3.0
20 weeks ago

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