Thanks for the explanation.
I appreciate it.

Rajith

On Sat, Jun 5, 2010 at 7:53 PM, Robbie Gemmell <[email protected]> wrote:
>> From: Rajith Attapattu [mailto:[email protected]]
>> Sent: 04 June 2010 19:40
>>
>> I'd actually question the value of restoring these files.
>> I thought we all agreed that we cleanup all the various log4j related
>> files from the code base except for the ones in the broker module.
>
> The outcome of previous discussion was to remove log4j.xml and
> log4j.properties files, i.e. those which could cause log4j to automatically
> configure itself in unexpected ways simply based on whichever jars happened
> to be found first on the classpath. From the JIRA:
>
> " 1. Remove all log4j.xml and log4j.properties files from the code based
>  (except for the ones in broker/etc ) "
>
>
>> If we are using a logging façade then I am wondering why we need to
>> have so many log4j files lying around.
>>
>> Even if we are going to ship our client with the log4j binding, I am
>> not sure we need all these files lying around.
>> For example the log4j file in systest is actually useless bcos we
>> already have a way of configuring the logging for the tests in
>> test-profiles.
>>
>> Is there a reason why this was done?
>> I am sorry but the explanation given below does not seem like a good
>> reason.
>
> There are plenty of bits of the codebase which dont use a facade, and even
> for those that do the implementation behind the facade still needs
> configured. The particular reason I restored them was that I was trying to
> run some of the perftests on a remote box the same way I always have, as
> part of a package put together from the build jars. When I came to do this I
> realised that the logging config used for the task had been deleted, and so
> rather than sit and figure out the historically used log4j settings out
> again I simply restored them, along with all the files that looked like they
> needn't have been deleted.
>
> The test log4j configuration is one setup, where largely everything is set
> to output to the same level, but there are other configurations which set
> specific loggers/levels used for output of results information etc to
> different levels and it's extremely convenient with no real downside for
> these to still be available. Looking at the systests config file id agree
> it's not particularly useful when considering the systests and their usage
> within a checkout so it could be removed really, but it can prove useful in
> situations like I was in just to have a basic configuration file available
> in the jar to be called on, and unlike the log4j.xml and log4j.properties
> files there's no harm in any of these being there since they won't be used
> without intent to do so.
>
> Robbie
>
>>
>> Rajith
>>
>> On Fri, Jun 4, 2010 at 10:53 AM, Robbie Gemmell <[email protected]>
>> wrote:
>> > Just an FYI that ive restored these log4j configuration files. Only
>> > files named log4j.xml and log4j.properties needed to be removed from
>> > the classpath, the rest need log4j to be explicitly configured to be
>> > picked up and so should be left in place, or at worst moved to a
>> > central location.
>> >
>> > Robbie
>> >
>> > On 4 June 2010 15:37,  <[email protected]> wrote:
>> >> Author: robbie
>> >> Date: Fri Jun  4 14:37:50 2010
>> >> New Revision: 951419
>> >>
>> >> URL: http://svn.apache.org/viewvc?rev=951419&view=rev
>> >> Log:
>> >> QPID-2599: restore log4j settings files which are not named
>> log4j.xml or log4j.properties and so need not be removed completely
>> since they wont be automatically applied by log4j if found on the
>> classpath like the others will
>> >>
>> >> Added:
>> >>    qpid/trunk/qpid/java/client/src/main/java/client.log4j   (props
>> changed)
>> >>      - copied unchanged from r943338,
>> qpid/trunk/qpid/java/client/src/main/java/client.log4j
>> >>    qpid/trunk/qpid/java/integrationtests/src/resources/sustained-
>> log4j.xml   (props changed)
>> >>      - copied unchanged from r943338,
>> qpid/trunk/qpid/java/integrationtests/src/resources/sustained-log4j.xml
>> >>    qpid/trunk/qpid/java/management/client/etc/qman.log4j   (props
>> changed)
>> >>      - copied unchanged from r943338,
>> qpid/trunk/qpid/java/management/client/etc/qman.log4j
>> >>    qpid/trunk/qpid/java/perftests/etc/perftests.log4j   (props
>> changed)
>> >>      - copied unchanged from r943338,
>> qpid/trunk/qpid/java/perftests/etc/perftests.log4j
>> >>    qpid/trunk/qpid/java/systests/src/main/java/systests.log4j
>> (props changed)
>> >>      - copied unchanged from r943338,
>> qpid/trunk/qpid/java/systests/src/main/java/systests.log4j
>> >>    qpid/trunk/qpid/java/tools/etc/test.log4j   (props changed)
>> >>      - copied unchanged from r943338,
>> qpid/trunk/qpid/java/tools/etc/test.log4j
>> >>
>> >> Propchange: qpid/trunk/qpid/java/client/src/main/java/client.log4j
>> >> --------------------------------------------------------------------
>> ----------
>> >> --- svn:mergeinfo (added)
>> >> +++ svn:mergeinfo Fri Jun  4 14:37:50 2010
>> >> @@ -0,0 +1,5 @@
>> >> +/qpid/branches/0.5.x-dev/client/src/main/java/client.log4j:886720-
>> 886722
>> >> +/qpid/branches/0.5.x-
>> dev/qpid/java/client/src/main/java/client.log4j:886720-
>> 886722,887145,892761,894875,916304,916325,930288,931179
>> >> +/qpid/branches/java-broker-0-
>> 10/qpid/java/client/src/main/java/client.log4j:795950-829653
>> >> +/qpid/branches/java-network-
>> refactor/qpid/java/client/src/main/java/client.log4j:805429-821809
>> >> +/qpid/trunk/qpid/client/src/main/java/client.log4j:796646-796653
>> >>
>> >> Propchange:
>> qpid/trunk/qpid/java/integrationtests/src/resources/sustained-log4j.xml
>> >> --------------------------------------------------------------------
>> ----------
>> >>    svn:eol-style = native
>> >>
>> >> Propchange:
>> qpid/trunk/qpid/java/integrationtests/src/resources/sustained-log4j.xml
>> >> --------------------------------------------------------------------
>> ----------
>> >>    svn:keywords = Rev Date
>> >>
>> >> Propchange:
>> qpid/trunk/qpid/java/integrationtests/src/resources/sustained-log4j.xml
>> >> --------------------------------------------------------------------
>> ----------
>> >> --- svn:mergeinfo (added)
>> >> +++ svn:mergeinfo Fri Jun  4 14:37:50 2010
>> >> @@ -0,0 +1,5 @@
>> >> +/qpid/branches/0.5.x-dev/integrationtests/src/resources/sustained-
>> log4j.xml:886720-886722
>> >> +/qpid/branches/0.5.x-
>> dev/qpid/java/integrationtests/src/resources/sustained-
>> log4j.xml:886720-
>> 886722,887145,892761,894875,916304,916325,930288,931179
>> >> +/qpid/branches/java-broker-0-
>> 10/qpid/java/integrationtests/src/resources/sustained-log4j.xml:795950-
>> 829653
>> >> +/qpid/branches/java-network-
>> refactor/qpid/java/integrationtests/src/resources/sustained-
>> log4j.xml:805429-821809
>> >> +/qpid/trunk/qpid/integrationtests/src/resources/sustained-
>> log4j.xml:796646-796653
>> >>
>> >> Propchange:
>> qpid/trunk/qpid/java/integrationtests/src/resources/sustained-log4j.xml
>> >> --------------------------------------------------------------------
>> ----------
>> >>    svn:mime-type = text/xml
>> >>
>> >> Propchange: qpid/trunk/qpid/java/management/client/etc/qman.log4j
>> >> --------------------------------------------------------------------
>> ----------
>> >> --- svn:mergeinfo (added)
>> >> +++ svn:mergeinfo Fri Jun  4 14:37:50 2010
>> >> @@ -0,0 +1,5 @@
>> >> +/qpid/branches/0.5.x-dev/management/client/etc/qman.log4j:886720-
>> 886722
>> >> +/qpid/branches/0.5.x-
>> dev/qpid/java/management/client/etc/qman.log4j:886720-
>> 886722,887145,892761,894875,916304,916325,930288,931179
>> >> +/qpid/branches/java-broker-0-
>> 10/qpid/java/management/client/etc/qman.log4j:795950-829653
>> >> +/qpid/branches/java-network-
>> refactor/qpid/java/management/client/etc/qman.log4j:805429-821809
>> >> +/qpid/trunk/qpid/management/client/etc/qman.log4j:796646-796653
>> >>
>> >> Propchange: qpid/trunk/qpid/java/perftests/etc/perftests.log4j
>> >> --------------------------------------------------------------------
>> ----------
>> >> --- svn:mergeinfo (added)
>> >> +++ svn:mergeinfo Fri Jun  4 14:37:50 2010
>> >> @@ -0,0 +1,5 @@
>> >> +/qpid/branches/0.5.x-dev/perftests/etc/perftests.log4j:886720-
>> 886722
>> >> +/qpid/branches/0.5.x-
>> dev/qpid/java/perftests/etc/perftests.log4j:886720-
>> 886722,887145,892761,894875,916304,916325,930288,931179
>> >> +/qpid/branches/java-broker-0-
>> 10/qpid/java/perftests/etc/perftests.log4j:795950-829653
>> >> +/qpid/branches/java-network-
>> refactor/qpid/java/perftests/etc/perftests.log4j:805429-821809
>> >> +/qpid/trunk/qpid/perftests/etc/perftests.log4j:796646-796653
>> >>
>> >> Propchange:
>> qpid/trunk/qpid/java/systests/src/main/java/systests.log4j
>> >> --------------------------------------------------------------------
>> ----------
>> >>    svn:eol-style = native
>> >>
>> >> Propchange:
>> qpid/trunk/qpid/java/systests/src/main/java/systests.log4j
>> >> --------------------------------------------------------------------
>> ----------
>> >>    svn:keywords = Rev Date
>> >>
>> >> Propchange:
>> qpid/trunk/qpid/java/systests/src/main/java/systests.log4j
>> >> --------------------------------------------------------------------
>> ----------
>> >> --- svn:mergeinfo (added)
>> >> +++ svn:mergeinfo Fri Jun  4 14:37:50 2010
>> >> @@ -0,0 +1,5 @@
>> >> +/qpid/branches/0.5.x-
>> dev/qpid/java/systests/src/main/java/systests.log4j:886720-
>> 886722,887145,892761,894875,916304,916325,930288,931179
>> >> +/qpid/branches/0.5.x-
>> dev/systests/src/main/java/systests.log4j:886720-886722
>> >> +/qpid/branches/java-broker-0-
>> 10/qpid/java/systests/src/main/java/systests.log4j:795950-829653
>> >> +/qpid/branches/java-network-
>> refactor/qpid/java/systests/src/main/java/systests.log4j:805429-821809
>> >> +/qpid/trunk/qpid/systests/src/main/java/systests.log4j:796646-
>> 796653
>> >>
>> >> Propchange:
>> qpid/trunk/qpid/java/systests/src/main/java/systests.log4j
>> >> --------------------------------------------------------------------
>> ----------
>> >>    svn:mime-type = text/plain
>> >>
>> >> Propchange: qpid/trunk/qpid/java/tools/etc/test.log4j
>> >> --------------------------------------------------------------------
>> ----------
>> >> --- svn:mergeinfo (added)
>> >> +++ svn:mergeinfo Fri Jun  4 14:37:50 2010
>> >> @@ -0,0 +1,5 @@
>> >> +/qpid/branches/0.5.x-dev/qpid/java/tools/etc/test.log4j:886720-
>> 886722,887145,892761,894875,916304,916325,930288,931179
>> >> +/qpid/branches/0.5.x-dev/tools/etc/test.log4j:886720-886722
>> >> +/qpid/branches/java-broker-0-
>> 10/qpid/java/tools/etc/test.log4j:795950-829653
>> >> +/qpid/branches/java-network-
>> refactor/qpid/java/tools/etc/test.log4j:805429-821809
>> >> +/qpid/trunk/qpid/tools/etc/test.log4j:796646-796653
>> >>
>> >>
>> >>
>> >> --------------------------------------------------------------------
>> -
>> >> Apache Qpid - AMQP Messaging Implementation
>> >> Project:      http://qpid.apache.org
>> >> Use/Interact: mailto:[email protected]
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > Apache Qpid - AMQP Messaging Implementation
>> > Project:      http://qpid.apache.org
>> > Use/Interact: mailto:[email protected]
>> >
>> >
>>
>>
>>
>> --
>> Regards,
>>
>> Rajith Attapattu
>> Red Hat
>> http://rajith.2rlabs.com/
>>
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project:      http://qpid.apache.org
>> Use/Interact: mailto:[email protected]
>
>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:[email protected]
>
>



-- 
Regards,

Rajith Attapattu
Red Hat
http://rajith.2rlabs.com/

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to