Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/53ningen/sl4swift
- Owner: 53ningen
- License: other
- Created: 2015-08-01T22:17:13.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2015-08-04T03:51:04.000Z (over 9 years ago)
- Last Synced: 2024-12-15T05:18:41.404Z (about 1 month ago)
- Language: Swift
- Homepage:
- Size: 164 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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'
```