You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2005/03/28 01:13:17 UTC
DO NOT REPLY [Bug 31056] -
(PATCH) Console appender doesn't notice changes to System.out/System.err
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31056>.
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=31056
------- Additional Comments From rdecampo@twcny.rr.com 2005-03-28 01:13 -------
This bug causes lost output when log4j, ANT and JUnit are used to run tests.
Since the ANT <junit> task captures System.out and System.err in its XML result
files, the best way to keep the logging statements and test results together is
to configure log4j to use the ConsoleAppender and write to System.out.
Unfortunately, if the <junit> task is forked, System.out is reset after log4j is
configured and the logging statements are not captured.
There appears to have been no activity on this bug sine Erik submitted it over
six months ago. If someone could adopt this bug and apply Erik's patch, that
would be great. If Erik's patch is in some way deficient, I'll volunteer to fix
the issues if I get reasonable assurance that the resulting patch will be applied.
--
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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
Re: DO NOT REPLY [Bug 31056] - (PATCH) Console appender doesn't
notice changes to System.out/System.err
Posted by Raymond DeCampo <rd...@twcny.rr.com>.
Paul Smith wrote:
> I have read this report and the proposed patch. I am sympathetic to the
> problem, but something doesn't feel quite right yet, and I'm still
> mulling it over in my brain.
>
> The company I work for has just moved offices, and so we're a bit all
> over the place at the moment, so I haven't had much thinking time to
> really get around to this.
>
> I'll let you know my thoughts eventually though, I promise.
>
Thanks Paul, I'll keep an eye out for it.
Ray
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
Re: DO NOT REPLY [Bug 31056] - (PATCH) Console appender doesn't
notice changes to System.out/System.err
Posted by Paul Smith <ps...@aconex.com>.
I have read this report and the proposed patch. I am sympathetic to the
problem, but something doesn't feel quite right yet, and I'm still
mulling it over in my brain.
The company I work for has just moved offices, and so we're a bit all
over the place at the moment, so I haven't had much thinking time to
really get around to this.
I'll let you know my thoughts eventually though, I promise.
cheers,
Paul
Raymond DeCampo wrote:
> bugzilla@apache.org wrote:
>
>> ------- Additional Comments From rdecampo@twcny.rr.com 2005-03-28
>> 01:13 -------
>> This bug causes lost output when log4j, ANT and JUnit are used to run
>> tests.
>>
>> Since the ANT <junit> task captures System.out and System.err in its
>> XML result
>> files, the best way to keep the logging statements and test results
>> together is
>> to configure log4j to use the ConsoleAppender and write to
>> System.out. Unfortunately, if the <junit> task is forked, System.out
>> is reset after log4j is
>> configured and the logging statements are not captured.
>>
>> There appears to have been no activity on this bug sine Erik
>> submitted it over
>> six months ago. If someone could adopt this bug and apply Erik's
>> patch, that
>> would be great. If Erik's patch is in some way deficient, I'll
>> volunteer to fix
>> the issues if I get reasonable assurance that the resulting patch
>> will be applied.
>>
>
> Seriously, any takers from the committers?
>
> Thanks,
> Ray
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
Re: DO NOT REPLY [Bug 31056] - (PATCH) Console appender doesn't
notice changes to System.out/System.err
Posted by Raymond DeCampo <rd...@twcny.rr.com>.
bugzilla@apache.org wrote:
> ------- Additional Comments From rdecampo@twcny.rr.com 2005-03-28 01:13 -------
> This bug causes lost output when log4j, ANT and JUnit are used to run tests.
>
> Since the ANT <junit> task captures System.out and System.err in its XML result
> files, the best way to keep the logging statements and test results together is
> to configure log4j to use the ConsoleAppender and write to System.out.
> Unfortunately, if the <junit> task is forked, System.out is reset after log4j is
> configured and the logging statements are not captured.
>
> There appears to have been no activity on this bug sine Erik submitted it over
> six months ago. If someone could adopt this bug and apply Erik's patch, that
> would be great. If Erik's patch is in some way deficient, I'll volunteer to fix
> the issues if I get reasonable assurance that the resulting patch will be applied.
>
Seriously, any takers from the committers?
Thanks,
Ray
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org