A simple, beautiful, powerful Android log program: Logger

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.