Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/remirobert/Dotzu
:iphone::eyes: In-App iOS Debugging Tool With Enhanced Logging, Networking Info, Crash reporting And More.
https://github.com/remirobert/Dotzu
application crash-reporting ios logger logging network network-monitoring swift swift3
Last synced: 9 days ago
JSON representation
:iphone::eyes: In-App iOS Debugging Tool With Enhanced Logging, Networking Info, Crash reporting And More.
- Host: GitHub
- URL: https://github.com/remirobert/Dotzu
- Owner: remirobert
- License: mit
- Archived: true
- Created: 2017-02-01T21:31:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-12T10:13:49.000Z (about 6 years ago)
- Last Synced: 2024-12-01T11:16:20.823Z (12 days ago)
- Topics: application, crash-reporting, ios, logger, logging, network, network-monitoring, swift, swift3
- Language: Swift
- Homepage:
- Size: 8.8 MB
- Stars: 1,798
- Watchers: 39
- Forks: 142
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - Dotzu - iOS app debugger while using the app. Crash report, logs, network. (Debugging / Getting Started)
- awesome-swift - Dotzu - Debbuger tool for iOS developer. Display logs, network request, device informations, crash logs while using the app. (Libs / Logging)
- awesome-ios-star - Dotzu - iOS app debugger while using the app. Crash report, logs, network. (Debugging / Getting Started)
- fucking-awesome-ios - Dotzu - iOS app debugger while using the app. Crash report, logs, network. (Debugging / Getting Started)
- fucking-awesome-ios - Dotzu - iOS app debugger while using the app. Crash report, logs, network. (Debugging / Getting Started)
README
# Dotzu
In-App iOS Debugging Tool With Enhanced Logging, Networking Info, Crash reporting And More.
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/972a1a6db90348bfb7e072cd3e0705ac)](https://www.codacy.com/app/remi.robert/Dotzu?utm_source=github.com&utm_medium=referral&utm_content=remirobert/Dotzu&utm_campaign=badger)
The debugger tool for iOS developer. Display *logs*, *network request*, *device informations*, *crash logs* while using the app. Easy accessible with **its bubble head button** 🔘. Easy to integrate in any apps, to handle development or testing apps **easier**. First version, there is plenty of room for improvement.
👉 [Objective-c example](https://github.com/remirobert/Dotzu-Objective-c) 🐢
## Usage
In the `AppDelegate` instanciate `Dotzu manager`.
Be careful to use Dotzu for development purpose only.```swift
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
#if DEBUG
Dotzu.sharedManager.enable()
#endif
return true
}
```## Logs
Dotzu override `print`, so you can use it and see your logs. otherwise, you can add level, and get more details (file, and line) about your logs. With the `Logger` class provided by the framework. Get new logs count on the badge, or *warning/error* notification on the bubble head.
```swift
print("logs")
Logger.verbose("some logs")
Logger.info("infos")
Logger.warning("warning ! ⚠️")
Logger.error("error ❌")
```## Network
Dotzu use `URLProcotol` to logg the request. Can can add the logger on a custom URLSessionConfiguration. Works with **Alamofire**. Works by default with `URLSession.shared`. You can disabled the networking logging in the settings screen. Get notified by a 🚀, when a request is launched.
```swift
//Your custom configuration
let configuration = URLSessionConfiguration.default///Add the network logger on the configuration
Dotzu.sharedManager.addLogger(session: configuration)//Use it:
//For Alamofire
let sessionManager = Alamofire.SessionManager(configuration: configuration)//For URLSession
let session = URLSession(configuration: configuration)
```## Installation
### [CocoaPods](http://cocoapods.org/)
You can use [CocoaPods](http://cocoapods.org/) to install `Dotzu` by adding it to your `Podfile`:```ruby
platform :ios, '9.0'
use_frameworks!
pod 'Dotzu'
```**For Objective-c use :**
```ruby
pod 'DotzuObjc'
```### [Carthage](https://github.com/Carthage/Carthage)
Add this to your Cartfile:
```ruby
github "remirobert/Dotzu"
```### Manually
Drag the source files into your project.
## Installation - Objective-c
### [CocoaPods](http://cocoapods.org/)
You can use [CocoaPods](http://cocoapods.org/) to install `DotzuObjc` by adding it to your `Podfile`:```ruby
platform :ios, '9.0'
use_frameworks!
pod 'DotzuObjc'
```## Contact
* Rémi ROBERT
* Twitter: [@remi936](https://twitter.com/remi936)## License
Dotzu is released under the [MIT License](http://www.opensource.org/licenses/MIT).