GithubHelp home page GithubHelp logo

sokunmin / android-easy-logcat Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 152 KB

L class is a wrapper of Log class to print detail logs with short syntax in Adb LogCat.

License: Apache License 2.0

Java 100.00%
andorid adb-logcat wrapper

android-easy-logcat's Introduction

L class is a wrapper of Log class to print log easier and show more details in Adb LogCat.

  • Append text with String.format() implicitly.
  • Log shows line number, method name, custom tag and messages.
  • Adjust the depth to get super method name.

How to

Use `L.d(), L.i(), L.w() and L.e()` instead of `Log.d(), Log.i(), Log.w() and Log.e()`.

Sample

```java MainActivity.java

public void onCreate() { testLevel(); }

void testLevel() { L.d(); L.i(this); L.w("CustomTag"); L.e(this, "[%d] L.e(%s)", 1, "DEBUG"); L.d("[%d] L.d(%s)", 2, "DEBUG"); L.i(1, "Text isNull? %s", L.isNull(mTest)); L.w(1, "Text2 isNull? %s", L.isNull(mTest2)); }


<H2>Result</H2>
<pre>
D/[(29)testLevel()] =>﹕ ----------
I/[(30)MainActivity / testLevel()] =>﹕ ----------
W/[(31)CustomTag / testLevel()] =>﹕ ----------
E/[(32)MainActivity / testLevel()] =>﹕ [1] L.e(DEBUG)
D/[(33)testLevel()] =>﹕ [2] L.d(DEBUG)
I/[(34)/(19)onCreate()] =>﹕ Text isNull? null
W/[(35)/(19)onCreate()] =>﹕ Text2 isNull? String not null
</pre>

android-easy-logcat's People

Contributors

sokunmin avatar

Watchers

 avatar  avatar

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.