Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 50706 invoked by uid 500); 8 Jun 2001 06:02:57 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 50691 invoked from network); 8 Jun 2001 06:02:56 -0000 X-Authentication-Warning: bodewig.bost.de: bodewig set sender to bodewig@apache.org using -f To: ant-user@jakarta.apache.org Subject: Re: How do I get the log file name? References: <13EFBBC3DB08D511A5CB0002A5095C5215F945@mail.workscapeexpress.com> From: Stefan Bodewig Date: 08 Jun 2001 08:02:58 +0200 In-Reply-To: "O'Hara, Patrick"'s message of "Thu, 7 Jun 2001 09:48:06 -0400" Message-ID: Lines: 16 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Patrick O'Hara wrote: > I am wondering how I get the file name of the log file? The default logger will write to stdout or whatever you specify with the -logger option - even the logger doesn't know the name of the file as Main simply opens that file and redirects System.out to it. Your best choice here is to explicitly set a property to the name of the logfile yourself like Steve suggested. The XmlLogger is a different beast. It will use log.xml in the current working directory unless the property XmlLogger.file has been set - in which case it will use this value. Yet another undocumented magic property. Stefan