LogConsole 0.0.5

LogConsole 0.0.5

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Joe0708.



  • By
  • Joe

LogConsole

A handy log console tool that can output information to the console, file, and display a small console tool in App.When the tester has problems, you can view the logs directly on the iPhone without having to connect to the IDE.

Example

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

Requirements

  • iOS 8.0
  • Swift Version 3.0

Installation

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

pod "LogConsole"

Usage

import LogConsole

Add console view to Window(Optional)

    let consv = ConsoleView()
    self.window?.addSubview(consv)

Print

    Logger.info("Info")
    Logger.debug("Debug")
    Logger.warning("Warning")
    Logger.error("Error")

Write to file

    Logger.saveLog()

You can specify the path and file name

    Logger.saveLog(in: CustomPath, filename: CustomFilename)

TODO

  1. Support horizontal screen
  2. Support Custom

Author

Joe, [email protected]

License

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