Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 54525 invoked from network); 1 Mar 2002 19:53:36 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 1 Mar 2002 19:53:36 -0000 Received: (qmail 599 invoked by uid 97); 1 Mar 2002 19:53:20 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 583 invoked by uid 97); 1 Mar 2002 19:53:20 -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 566 invoked from network); 1 Mar 2002 19:53:19 -0000 Date: Fri, 1 Mar 2002 11:53:13 -0800 (PST) From: "Craig R. McClanahan" To: Tomcat Users List Subject: Re: Logging In-Reply-To: Message-ID: <20020301114902.F18718-100000@icarus.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Fri, 1 Mar 2002, Jay Wright wrote: > > First - can the catalina.out file be configured through tomcat components > such that all System.out and System.err entries are timestamped. > You can configure a that uses the SystemOutLogger or SystemErrLogger with timestamp="true", and anything logged there by Tomcat (or your application calling the getServletContext().log() method) will be timestamped. However, this won't affect any output that is directly written with things like System.out.println(). > Two - What are the api calls to write to the file and can I > specifiy the verbosity (the level of the entry 0-4) with each entry? > >From within your application, anything you write via the HttpServlet.log() or ServletContext.log() methods is written directly to the associated with your web application (with optional timestamps if you have asked for it). There is no provision through the servlet API to set verbosity levels, however. > I'm hesitant to use the since I'm unfamiliar with whether or not > that code would be portable to other web servers? > Basic rule - *nothing* in server.xml is portable, but *everything* in your own web.xml is portable. > Thanks, > Jay > Craig -- To unsubscribe: For additional commands: Troubles with the list: