hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1561490 - /httpcomponents/httpclient-android/trunk/build.gradle
Date Sun, 26 Jan 2014 13:59:23 GMT
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'),



Mime
View raw message