Android Open Source - ara-twitter Twitter Logging






From Project

Back to project page ara-twitter.

License

The source code is released under:

Apache License

If you think the Android project ara-twitter listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * Copyright (c) 2012 BakingCode. All Rights Reserved.
 *// w w  w.j  ava2  s. com
 * This software is the confidential and proprietary information of
 * BakingCode ("Confidential Information").  You shall not disclose such
 * Confidential Information and shall use it only in accordance with 
 * the terms of the license agreement you entered into with BakingCode.
 */ 
package com.bakingcode.io.twitter.tools;

import android.util.Log;
import com.bakingcode.io.twitter.BuildConfig;

/**
 * Class that provides a simple logging with short methods like "L" or "LT".
 * import this class memebers statically to make the method calls L(TAG, "msg");
 */
public class TwitterLogging {

  /**
   * Logs a message with simply L method
   *
   * @param tag tag to log
   * @param s string to log
   */
  public static void L(String tag, String s) {
    
    if (BuildConfig.DEBUG) {
      Log.d(tag, s);
    }
  }
  
  /**
   * Logs a throwable with simply LT method
   *
   * @param tag tag to log
   * @param e throwable
   */
  public static void LT(String tag, Throwable e) {

        if (BuildConfig.DEBUG) {
        L(tag, Log.getStackTraceString(e));
        }
    
  }
  
}




Java Source Code List

com.bakingcode.io.twitter.Parameters.java
com.bakingcode.io.twitter.TwitterHttpClient.java
com.bakingcode.io.twitter.TwitterOAuth.java
com.bakingcode.io.twitter.Twitter.java
com.bakingcode.io.twitter.Urls.java
com.bakingcode.io.twitter.exceptions.TwitterCommunicationException.java
com.bakingcode.io.twitter.exceptions.TwitterErrorRequestException.java
com.bakingcode.io.twitter.exceptions.TwitterException.java
com.bakingcode.io.twitter.model.ApiConfiguration.java
com.bakingcode.io.twitter.model.ApiMethod.java
com.bakingcode.io.twitter.model.ApiResourceFamily.java
com.bakingcode.io.twitter.model.Coordinates.java
com.bakingcode.io.twitter.model.Cursor.java
com.bakingcode.io.twitter.model.Friendship.java
com.bakingcode.io.twitter.model.IError.java
com.bakingcode.io.twitter.model.Id.java
com.bakingcode.io.twitter.model.IdentifierList.java
com.bakingcode.io.twitter.model.MediaEntity.java
com.bakingcode.io.twitter.model.Place.java
com.bakingcode.io.twitter.model.ResponseString.java
com.bakingcode.io.twitter.model.TrendPlace.java
com.bakingcode.io.twitter.model.Trend.java
com.bakingcode.io.twitter.model.Tweet.java
com.bakingcode.io.twitter.model.TwitterError.java
com.bakingcode.io.twitter.model.User.java
com.bakingcode.io.twitter.tools.HTMLEntity.java
com.bakingcode.io.twitter.tools.Tools.java
com.bakingcode.io.twitter.tools.TwitterLogging.java