iOSLogger 0.1.7

iOSLogger 0.1.7

iOSLogger 维护。



iOSLogger 0.1.7

  • pavel-zlotarenchuk

iOSLogger

CI Status Version Swift License Platform

一个用于在应用中记录日志的 Swift 4.0 框架。简单易用。

示例

要运行示例项目,请首先克隆仓库,从 Example 目录运行 pod install

要求

iOS 9.0 或更高版

安装

iOSLogger 可通过 CocoaPods 获得。要安装它,只需将以下行添加到 Podfile 中

use_frameworks!
pod 'iOSLogger'

然后运行 pod install

使用方法

将 iOSLogger 导入 Swift 文件顶部。

import iOSLogger

在 AppDelegat 使用

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

在您想要记录日志的位置

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

在您想要从文件读取日志的位置

IOSLogger.readLogs()

在您想要发送日志到邮件的位置:

IOSLogger.sendLogs()

作者

帕维尔·兹洛塔连丘克 ([email protected])

许可证

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

https://apache.ac.cn/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.