A simple, beautiful, powerful Android log program.
The log program provides: Thread information Threads information Class Information Classes information method information methods information beautifully printed JSON content Pretty-print for JSON contents Clean output Jump to Source feature Gradle
Compile ' com.orhanobut:logger:1.3 '
Back to Top
the current log system
LOG.D (TAG, "Hello");
Back to the top of the Logger
LOGGER.D ("Hello");
Back to top usage ?
1 2 3 4 5 6 |
LOGGER.D ("Hello"); LOGGER.E ("Hello"); LOGGER.W ("Hello"); LOGGER.V ("Hello"); LOGGER.WTF ("Hello"); Logger.json (json_content); |
Back to Top
Change TAG
All logs
Logger.init (Your_tag);
Log based
LOGGER.D ("MyTag", "Hello");
Back to top Settings (optional)
Change to the settings with Init. This should is called only once. Best place would is in application class. All of them are optional. ?
1 2 3 4 5 |
Logger. Init (Your_tag) |