hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HTTPCLIENT-497) Logger (Category) names don't follow common pattern
Date Tue, 10 Apr 2007 14:45:33 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPCLIENT-497.
------------------------------------------

    Resolution: Fixed

Fixed in SVN trunk

Oleg

> Logger (Category) names don't follow common pattern
> ---------------------------------------------------
>
>                 Key: HTTPCLIENT-497
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-497
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 3.0 RC3
>         Environment: Operating System: other
> Platform: All
>            Reporter: Christian Stein
>             Fix For: 4.0 Alpha 1
>
>         Attachments: patch-36604.diff
>
>
> The Wire class uses two loggers named unexpected. The "org.apache.commons."
> prefix is missing - so you can't mute all debug level statements with a
> one-liner in you log4j.properties for example:
>   log4j.logger.org.apache.commons.httpclient INFO
> You have to add this, too:
>   log4j.logger.httpclient INFO
> Please prepend the "org.apache.commons." before both names.
> Cheers,
> Christian
> <code>
> class Wire {
>     public static Wire HEADER_WIRE = new
> Wire(LogFactory.getLog("httpclient.wire.header"));
>     
>     public static Wire CONTENT_WIRE = new
> Wire(LogFactory.getLog("httpclient.wire.content"));
> </code>
> http://svn.apache.org/viewcvs.cgi/jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/Wire.java?rev=155418&view=markup

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Mime
View raw message