Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/53ningen/sl4swift

Simple Logging Library for Swift
https://github.com/53ningen/sl4swift

Last synced: 7 days ago
JSON representation

Simple Logging Library for Swift

Awesome Lists containing this project

README

        

SL4Swift
===============

Simple Logging Library for Swift

This software is released under the MIT License, see LICENSE

## Usage

```swift
let logger = LoggerFactory.getLogger(.INFO)
logger.info("logger test") //=> output log
logger.trace("hoge") //=> do nothing(loglevel = .INFO)
```

## Log Output Example

```
2015-08-02 16:59:31.482 xctest[74860:477566] [INFO] LoggerTest.swift:8 - logger test
2015-08-02 16:59:31.482 xctest[74860:477566] [TRACE] LoggerTest.swift:9 - hoge
```

## LogLevel

* trace
* debug
* info
* warn
* error

## Install

use CocoaPods

```
pod 'SL4Swift'
```