CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.

SKLogDebugger 1.1.0

SKLogDebugger 1.1.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2018
SPMSupports SPM

Maintained by aikizoku.



 
Depends on:
RxSwift~> 4.0
RxCocoa~> 4.0
SwiftyJSON>= 0
SwiftyAttributes>= 0
 

SKLogDebugger

Saikyo log debugger.

Installation

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

pod 'SKLogDebugger'

Example

Import this Library.

import SKLogDebugger

Add log data.

// Sample 1
SKLogDebugger.shared.addLog(
  action: "action_1",
  data: [:]
)

// Sample 2
SKLogDebugger.shared.addLog(
  action: "action_2",
  data: [
    "data1": 123,
    "data2": "aaa",
    "data3": true
  ]
)

// Sample 3
SKLogDebugger.shared.addLog(
  action: "action_3",
  data: [
    "data1": [1, 2, 3, "a", "b", "c"],
    "data2": [
      "data21": -123,
      "data22": "bbb",
      "data23": false
    ],
    "data3": [
      "data31": [
        "data311": "999"
       ]
    ]
  ]
)

Open setting view.

SKLogDebugger.shared.openSettingView()

Set omit actions.

SKLogDebugger.shared.setOmitActions(["action_2", "action_3"])

Set PrentViewController

SKLogDebugger.shared.setParentViewController(myViewController)

Requirements

Swift4

RxSwift, RxCocoa, SwiftyJSON, SwiftyAttributes

Author

aikizoku, [email protected]

License

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