Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 72029 invoked from network); 7 Jan 2003 06:25:01 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 7 Jan 2003 06:25:01 -0000 Received: (qmail 7799 invoked by uid 97); 7 Jan 2003 06:26:05 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 7744 invoked by uid 97); 7 Jan 2003 06:26:04 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 7684 invoked by uid 98); 7 Jan 2003 06:26:03 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <011601c2b615$6d6f14c0$31513181@GENIUS> Reply-To: "Triptpal Singh Lamba" From: "Triptpal Singh Lamba" To: "Tomcat Users List" Subject: Logger Problem Date: Tue, 7 Jan 2003 01:24:25 -0500 Organization: Stony Brook University MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0113_01C2B5EB.83B870C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0113_01C2B5EB.83B870C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I am using a simple logger I made for an application. It is used to = debug my server side Java classes and JSPs . The idea is that the logger = file name is made on the current date.=20 Now the file name and path are set only once in the Lifecycle of the = application(when the server is started). How do I put an if condition such that the Log file path changes every = "day". I dont want to compare the date in file name existing with = current date with every Log statement. Any Ideas? Thanks Tript Singh ------=_NextPart_000_0113_01C2B5EB.83B870C0--