You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2014/01/26 14:59:23 UTC

svn commit: r1561490 - /httpcomponents/httpclient-android/trunk/build.gradle

Author: olegk
Date: Sun Jan 26 13:59:23 2014
New Revision: 1561490

URL: http://svn.apache.org/r1561490
Log:
Use simple class name instead of full one for log tag

Modified:
    httpcomponents/httpclient-android/trunk/build.gradle

Modified: httpcomponents/httpclient-android/trunk/build.gradle
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/trunk/build.gradle?rev=1561490&r1=1561489&r2=1561490&view=diff
==============================================================================
--- httpcomponents/httpclient-android/trunk/build.gradle (original)
+++ httpcomponents/httpclient-android/trunk/build.gradle Sun Jan 26 13:59:23 2014
@@ -237,7 +237,7 @@ task rewriteLogging(dependsOn: rewriteIm
     doLast {
         List<Replacement> replacements = [
                 new Replacement(~/^import org\.apache\.commons\.logging\.LogFactory;/, ''),
-                new Replacement(~/^(.*)Log log = LogFactory.getLog\(.*\);/, '$1String tag = getClass().getName();'),
+                new Replacement(~/^(.*)Log log = LogFactory.getLog\(.*\);/, '$1String tag = getClass().getSimpleName();'),
                 new Replacement(~/^import org\.apache\.commons\.logging\.Log;/, 'import android.util.Log;'),
                 new Replacement(~/^(.*?)(?:this\.)?log\.debug\((.*)$/, '$1Log.d(tag, $2'),
                 new Replacement(~/^(.*?)(?:this\.)?log\.isDebugEnabled\(\)(.*)$/, '$1Log.isLoggable(tag, Log.DEBUG)$2'),