Return-Path: Delivered-To: apmail-jakarta-httpclient-dev-archive@www.apache.org Received: (qmail 95524 invoked from network); 4 Jan 2005 16:25:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Jan 2005 16:25:04 -0000 Received: (qmail 52254 invoked by uid 500); 4 Jan 2005 16:22:38 -0000 Delivered-To: apmail-jakarta-httpclient-dev-archive@jakarta.apache.org Received: (qmail 52186 invoked by uid 500); 4 Jan 2005 16:22:37 -0000 Mailing-List: contact httpclient-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "HttpClient Project" Reply-To: "HttpClient Project" Delivered-To: mailing list httpclient-dev@jakarta.apache.org Received: (qmail 52112 invoked by uid 99); 4 Jan 2005 16:22:36 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 04 Jan 2005 08:22:32 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id j04GMPEl000896 for ; Tue, 4 Jan 2005 17:22:25 +0100 Received: (from nobody@localhost) by ajax.apache.org (8.12.11/8.12.11/Submit) id j04GMO3A000893; Tue, 4 Jan 2005 17:22:24 +0100 Date: Tue, 4 Jan 2005 17:22:24 +0100 Message-Id: <200501041622.j04GMO3A000893@ajax.apache.org> From: bugzilla@apache.org To: httpclient-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 32937] New: - Replace commons-logging by UGLI X-Bugzilla-Reason: AssignedTo X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=32937 Summary: Replace commons-logging by UGLI Product: HttpClient Version: 3.0 Beta 1 Platform: PC URL: http://logging.apache.org/log4j/docs/ugli.html OS/Version: Windows 2000 Status: NEW Severity: normal Priority: P2 Component: Commons HttpClient AssignedTo: httpclient-dev@jakarta.apache.org ReportedBy: ortwin.glueck@nose.ch As soon as Log4J 1.3 is available a move to UGLI is possible. This would improve Log performance with Log4J and render cleaner logging code at the same time. Ceki writes: Since the org.apache.log4j.Logger class is a direct implementation of org.apache.ugli.ULogger interface, there is no need to wrap a log4j Logger to conform to the UGLI interface. Log4j Loggers are already ULoggers. It follows that the objects returned by o.a.ugli.LoggerFactory.getLogger("x") are identical to those returned by o.a.log4j.Logger.getLogger("x"). Thus, using UGLI in conjunction with log4j will not carry any overhead whatsoever. As noted in my previous message, UGLI also supports parameterized log messages obliterating the need to surround log messages with logger.isXXXEnabled checks. Instead of writing: if(logger.isDebugEnabled()) { logger.debug("User with "+id+" entered wrong query string ["+query"]." ); } you can just write: logger.debug("User with {} entered wrong query string [{}].", id, query); Give or take a nano-second, when the log statement is disabled, both forms perform equally well but the second form is easier to read and to write. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org