Giter Site home page Giter Site logo

xlogging's Introduction

XLogging

XLogging is an enhanced network performance monitor SDK for Android.

Quick Start

Gradle:

compile 'com.hello2mao:xlogging:2.0.3'

Usage:

XLogging.install();

Or you can add a callback to get specific data:

XLogging.install(new XLoggingCallback() {
            @Override
            public void handle(TransactionData transactionData) {
                System.out.println(transactionData.getBytesSent());
            }
        });

Example log

I/XLogging: <<<<<<<<XLogging Begin<<<<<<<<
            host:             image.baidu.com
            ip:               112.80.248.122
            scheme:           https
            protocol:         HTTP/1.1
            port:             443
            pathAndQuery:     /channel/listjson?pn=0&rn=30&tag1=%E7%BE%8E%E5%A5%B3&tag2=%E5%85%A8%E9%83%A8&ftags=%E6%A0%A1%E8%8A%B1&ie=utf8
            requestMethod:    GET
            statusCode:       200
            bytesSent:        277 bytes
            bytesReceived:    10285 bytes
            tcpConnectTime:   6 ms
            sslHandshakeTime: 21 ms
            requestTime:      1 ms
            firstPackageTime: 55 ms
            responseTime:     68 ms
            socketReuse:      false
            =========XLogging End==========

License

Copyright (C) 2018 hello2mao.

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

   http://www.apache.org/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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.