Back to project page YahooWeather.
The source code is released under:
GNU General Public License
If you think the Android project YahooWeather listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.imlongluo.weather.apis; /*from w ww. j a va2 s. c om*/ import android.util.Log; public class YahooWeatherLog { public static final String TAG = "YahooWeather"; public static boolean isDebuggable = true; public static void setDebuggable(final boolean isDebuggable) { YahooWeatherLog.isDebuggable = isDebuggable; } public static void d(final String tag, final String message) { if (!isDebuggable) { return; } Log.d(tag, message); } public static void d(final String message) { if (!isDebuggable) { return; } Log.d(TAG, message); } public static void printStack(final Exception e) { if (!isDebuggable) { return; } e.printStackTrace(); } }