Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/siddhantmishra1305/loggy

Loggy is an iOS Logging framework . It creates a new log file every 24 hrs. It has a dedicated Mac OS application which shows analytics and a detailed log report.
https://github.com/siddhantmishra1305/loggy

analytics cocoapods crash-reporting error-reporting framework ios ioslogging library loganalytics logging loggy logs macos monitoring pod report swift swift4 swift5

Last synced: about 17 hours ago
JSON representation

Loggy is an iOS Logging framework . It creates a new log file every 24 hrs. It has a dedicated Mac OS application which shows analytics and a detailed log report.

Awesome Lists containing this project

README

        



# Loggy
[![Pod Version](https://img.shields.io/badge/version-1.0.0-blue)]()
[![Pod Platform](https://img.shields.io/badge/platform-ios-brightgreen)]()
[![Pod License](https://img.shields.io/hexpm/l/plug)](https://opensource.org/licenses/Apache-2.0)

**Loggy** is a simple logging framework for iOS with a dedicated mac application to view analytics and log report.

### Installation

### CocoaPods

```ruby
platform :ios, '9.0'

target 'SampleTarget' do
use_frameworks!
pod 'Loggy'
end
```

### Usage

1. You can simply use `import Loggy` to get started.

2. Add `Loggy.setup` to `application:didFinishLaunchingWithOptions:`

```swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
Loggy.setup()
return true
}
```

3. To log use `Loggy.log(value: "Nice information", type: .Info)`

```swift
Loggy.log(value: "Nice information", type: .Info)
Loggy.log(value: "Exception", type: .Error)
Loggy.log(value: "log system info", type: .Verbose)
Loggy.log(value: "Warning recieved", type: .Warning)
```
4. Get Path to logfile
```swift
Loggy.logFilePath
```

### Mac app to view analytics

[**Loggy Analytics**](https://github.com/siddhantmishra1305/LoggyAnalytics)

1. **Import** the log file.



2. **Dashboard** tab shows a consolidated report of errors,warning etc.



3. **Log Details** shows detailed information such as **filename**, **function name** , **line number** and **time stamp**.



**Note:** It automatically creates a new log file every 24 hrs.

## Coming Soon
- Carthage Support
- macOS,tvOS and watchOS support

## Author
- [Siddhant Mishra](https://www.linkedin.com/in/siddhant-mishra-722834105)

## License
- Loggy is available under the Apache 2 license. See the [LICENSE file](https://github.com/siddhantmishra1305/Loggy/blob/master/LICENSE).