Correctly process log information in android Projects

Source: Internet
Author: User

Correctly process log information in android Projects

In our project, debugging programs usually involve debugging or logging, especially reading json data, however, when the project goes online, the log information cannot be printed out. You can download some bad apps and connect to eclipse to see the request url or returned data, if you come across some skilled people, do you know what to do? You know, below is a log class, which is usually used in projects as a tool class,

Public class LogUitl {private static final boolean IS_OPEN = true; private static final String TAG = "LogUitl"; public static void e (String msg) {Log. e (TAG, msg);} public static void d (String msg) {Log. e (TAG, msg);} public static void I (String msg) {Log. e (TAG, msg);} public static void w (String msg) {Log. e (TAG, msg);} public static void v (String msg) {Log. e (TAG, msg );}}



Related Article

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.