Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 66408 invoked from network); 22 Mar 2002 06:45:56 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 22 Mar 2002 06:45:56 -0000 Received: (qmail 3698 invoked by uid 97); 22 Mar 2002 06:46:00 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 3682 invoked by uid 97); 22 Mar 2002 06:45:59 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 3671 invoked from network); 22 Mar 2002 06:45:59 -0000 Message-ID: <031a01c1d16d$244cfbf0$ad11620a@lrau> From: "Liviu Rau" To: "Ant Users List" References: <02aa01c1d0c2$ec718520$ad11620a@lrau> <01a501c1d0c5$a77ebc00$6501a8c0@darden.virginia.edu> Subject: Re: clear log statements from project Date: Fri, 22 Mar 2002 08:45:23 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thank you for your answer Erik ! I do not like the disable logging solution because my code will still execute logging statements(for checking if logging is enabled and for arguments construction). At deployment time I will want to remove some of the logging statements (of course, not all). I find my self a way to do that with a custom task. Ant is a fantastic tool :). I will see how can help me, even I have my solution. Thank you very much ! Liviu Rau ----- Original Message ----- From: "Erik Hatcher" To: "Ant Users List" Sent: Thursday, March 21, 2002 12:46 PM Subject: Re: clear log statements from project > Why not just use Log4j's config file and turn off logging that way? Thats > the purpose of log4j anyway, to keep the statements in the code and have > them disabled at runtime. > > But I believe using the latest task (in the nightly and CVS > versions) would do the trick you're asking. > > Erik > > > ----- Original Message ----- > From: "Liviu Rau" > To: > Sent: Thursday, March 21, 2002 5:26 AM > Subject: clear log statements from project > > > Hello everyone ! > > I have a project I witch I want to do a lot of logging with log4j. > I decided to write all my logging statements like this : > > file://LOG4J > logger.debug("logging message"); > file://LOG4J > > I want to do that because later, on deployment I will search for these > statements and try to remove them. > The question is : can I do that automatically with Ant ? > > Thank you very much ! > > Liviu Rau > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: