LIHLogManager is simple to use logger with sqlite database written in Swift which can be used when the debugger is not available (Background actions).
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Example
Pod
.gitignore
LICENSE
LIHLogManager.podspec
README.md
_Pods.xcodeproj

README.md

LIHLogManager

[![CI Status](http://img.shields.io/travis/Lasith Hettiarachchi/LIHLogManager.svg?style=flat)](https://travis-ci.org/Lasith Hettiarachchi/LIHLogManager) Version License Platform

Usage

import LIHLogManager

####Add a record to log

LIHLogManager.addToLog(message, title: title)

####Get all records

LIHLogManager.getRecords(nil)

####Clear log This will delete all the records.

LIHLogManager.clearLog()

####Get most recent 200 records

LIHLogManager.getRecords(200)

####Delete a record

LIHLogManager.deleteRecord(withId: 5)

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 7+

Installation

LIHLogManager is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "LIHLogManager"

Author

Lasith Hettiarachchi, lasithih@yahoo.com

License

LIHLogManager is available under the MIT license. See the LICENSE file for more info.