Android Logcat Package Class

Source: Internet
Author: User

Simple Log wrapper class:

Public final class CLog {public static final Boolean DEBUG = true;    Private CLog () {} public static void D (string tag, string desc) {if (DEBUG) LOG.D (tag, desc); public static void D (string tag, string desc, Throwable tr) {if (DEBUG) LOG.D (tag, desc, tr)    ;    public static void V (string tag, string desc) {if (DEBUG) LOG.V (tag, desc);    public static void V (string tag, string desc, Throwable tr) {if (DEBUG) LOG.V (tag, desc);    } public static void W (string tag, string desc) {if (DEBUG) LOG.W (tag, desc);    } public static void W (String tag, throwable IoE) {if (DEBUG) LOG.W (tag, IOE);    public static void W (string tag, string desc, Throwable e) {if (DEBUG) LOG.W (tag, DESC, E);    } public static void I (string tag, string desc) {if (DEBUG) log.i (tag, desc); } public static void I(string tag, string desc, Throwable tr)    {if (DEBUG) log.i (tag, desc, tr);    public static void E (string tag, string desc) {if (DEBUG) LOG.E (tag, desc);    public static void E (string tag, string desc, Throwable tr) {if (DEBUG) LOG.E (tag, desc, tr); }}

  

Android Logcat Package Class

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.