Latest 0.2
Homepage https://github.com/liuxc123/DeLogger
License MIT
Platforms ios 8.0, requires ARC
Authors

DeLogger

In-App iOS Debugging Tool With Enhanced Logging, Networking Info, Crash reporting And More.

Platform iOS
Carthage compatible
License MIT

Codacy Badge

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 🐢


DeLogger

Usage

In the AppDelegate instanciate Dotzu manager.
Be careful to use Dotzu for development purpose only.

func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
#if DEBUG
DeLogger.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.

DeLogger

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.

DeLogger

//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)

//Use it:
//For AFNetworking
let sessionManager = AFNetworking.SessionManager(configuration: configuration)

//For URLSession
let session = URLSession(configuration: configuration)

Installation

CocoaPods

You can use CocoaPods to install DeLogger by adding it to your Podfile:

platform :ios, '8.0'
use_frameworks!
pod 'DeLogger'

Manually

Drag the source files into your project.

Contact

License

Dotzu is released under the MIT License.

Latest podspec

{
    "name": "DeLogger",
    "version": "0.2",
    "summary": "iOS debugger tool for iOS developer. Display logs, network request, device informations, crash logs while using the app.",
    "description": "DeLogger is an debugger tool for iOS, with the following features:nnu25cf display all app logs in different colors as you like.nu25cf display all app network http requests details, including third-party SDK in app.nu25cf display app device informations and app identity informations.nu25cf display app crash logs.nu25cf filter keywords in app logs and app network http requests.nu25cf app memory real-time monitoring.nnWelcome to star and fork. If you have any questions, welcome to open issues.",
    "homepage": "https://github.com/liuxc123/DeLogger",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "liuxc123": "[email protected]"
    },
    "source": {
        "git": "https://github.com/liuxc123/DeLogger.git",
        "tag": "0.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Source/Classes/**/*",
    "resources": "Source/Assets/**/*",
    "ios": {
        "frameworks": [
            "UIKit",
            "Foundation"
        ]
    },
    "requires_arc": true,
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This