iOSLogger 0.1.7

iOSLogger 0.1.7

Maintained by iOSLogger.



iOSLogger 0.1.7

  • By
  • pavel-zlotarenchuk

iOSLogger

CI Status Version Swift License Platform

A Swift 4.0 framework for logging your apps. Simple and quick to use.

Example

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

Requirements

iOS higher 9.0

Installation

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

use_frameworks!
pod 'iOSLogger'

And run pod install

Usage

Import iOSLogger to the top of the Swift file.

import iOSLogger

In AppDelegat use:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    IOSLogger.myInit(authorEmail: "[email protected]")
    return true
}

In the place where you want to record the log:

IOSLogger.log() - for your tag
IOSLogger.v() - for verbose
IOSLogger.d() - for debug
IOSLogger.i() - for info
IOSLogger.w() - for warn
IOSLogger.e() - for error

In the place where you want to read log from file:

IOSLogger.readLogs()

In the place where you want to send logs to the mail::

IOSLogger.sendLogs()

Author

Pavel Zlotarenchuk ([email protected])

License

Copyright 2013 viktord1985, GreenMoby.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.