Latest1.1.6
Homepagehttps://github.com/shogo4405/Logboard
LicenseNew BSD
Platformsios 8.0, osx 10.9, tvos 9.0, watchos 2.0
Authors

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

iOSOSXtvOSwatchOSXCodeSwiftCocoaPodsCarthage
1.1.08.0+10.9+9.0+2.09.0+4.01.2.00.20.0+
1.0.08.0+10.9+9.0+2.08.3+3.11.2.00.20.0+

Installation

Please set up your project Swift 4.0.

CocoaPods

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

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

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

Carthage

github "shogo4405/Logboard" ~> 1.1.0

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

Latest podspec

{
    "name": "Logboard",
    "version": "1.1.6",
    "summary": "Simple Logging framework",
    "description": "Simple Logging framework for your framework project.",
    "homepage": "https://github.com/shogo4405/Logboard",
    "license": "New BSD",
    "authors": {
        "shogo4405": "[email protected]"
    },
    "source": {
        "git": "https://github.com/shogo4405/Logboard.git",
        "tag": "1.1.6"
    },
    "social_media_url": "http://twitter.com/shogo4405",
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "tvos": "9.0",
        "watchos": "2.0"
    },
    "ios": {
        "source_files": "Platforms/iOS/*.{h,swift}"
    },
    "osx": {
        "source_files": "Platforms/macOS/*.{h,swift}"
    },
    "tvos": {
        "source_files": "Platforms/tvOS/*.{h,swift}"
    },
    "watchos": {
        "source_files": "Platforms/watchOS/*.{h,swift}"
    },
    "source_files": "Sources/*.swift"
}

Pin It on Pinterest

Share This