hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r159953 - jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java
Date Sun, 03 Apr 2005 19:40:24 GMT
Author: olegk
Date: Sun Apr  3 12:40:22 2005
New Revision: 159953

URL: http://svn.apache.org/viewcvs?view=rev&rev=159953
Log:
Poor man's logging

Modified:
    jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java

Modified: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java?view=diff&r1=159952&r2=159953
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java
(original)
+++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java
Sun Apr  3 12:40:22 2005
@@ -139,4 +139,34 @@
         }
     }
     
+    // Poor man's logging
+    // These methods are to be overridden at at a higher level
+    
+    protected boolean isWirelogEnabled() {
+        return false;
+    }
+    
+    protected void wirelog(final String s) {
+    }
+    
+    protected boolean isErrorEnabled() {
+        return false;
+    }
+    
+    protected void error(final String s) {
+    }
+    
+    protected void error(final String s, final Throwable t) {
+    }
+
+    protected boolean isWarnEnabled() {
+        return false;
+    }
+    
+    protected void warn(final String s) {
+    }
+    
+    protected void warn(final String s, final Throwable t) {
+    }
+    
 }



Mime
View raw message