Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 24884 invoked from network); 26 Feb 2008 08:52:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2008 08:52:39 -0000 Received: (qmail 27273 invoked by uid 500); 26 Feb 2008 08:52:34 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 26900 invoked by uid 500); 26 Feb 2008 08:52:33 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 26882 invoked by uid 99); 26 Feb 2008 08:52:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2008 00:52:33 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marcel.reutegger@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 26 Feb 2008 08:51:42 +0000 Received: (qmail invoked by alias); 26 Feb 2008 08:52:03 -0000 Received: from l2tp.day.com (EHLO [192.168.10.180]) [62.192.10.243] by mail.gmx.net (mp039) with SMTP; 26 Feb 2008 09:52:03 +0100 X-Authenticated: #894343 X-Provags-ID: V01U2FsdGVkX194A8JS7u540x4ad0NHddhKkX+Vllb2MzxW7/7bCo pzAsuAgKABMhH0 Message-ID: <47C3D330.20106@gmx.net> Date: Tue, 26 Feb 2008 09:52:00 +0100 From: Marcel Reutegger User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: dev@jackrabbit.apache.org Subject: Re: Logging in Tests References: <8F4B7F30-A339-4380-9B0D-3188ADE3479F@day.com> In-Reply-To: <8F4B7F30-A339-4380-9B0D-3188ADE3479F@day.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Alexander Klimetschek wrote: > I am wondering how to do proper logging in jackrabbit test cases. At > first I used System.out.println() during test case debugging, but now I > want to improve that and switch to "log" (o.a.j.test.LogPrintWriter) > provided by the test base class o.a.j.test.JUnitTest. > > Problem is, I cannot get it to print out on the console, neither when > running in Eclipse nor when running with mvn test. I tried it with > providing a log4j.properties file and by specifying the log4j properties > via -D on the mvn command line, but nothing worked. there's an existing log4j.properties file that you can edit in jackrabbit-core/src/test/resources/log4j.properties you just have to change the following line: log4j.logger.org.apache.jackrabbit.test=DEBUG to: log4j.logger.org.apache.jackrabbit.test=DEBUG, stdout regards marcel