Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 80B8B1786C for ; Fri, 10 Oct 2014 10:15:22 +0000 (UTC) Received: (qmail 39852 invoked by uid 500); 10 Oct 2014 10:15:19 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 39790 invoked by uid 500); 10 Oct 2014 10:15:19 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 39779 invoked by uid 99); 10 Oct 2014 10:15:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2014 10:15:19 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ameer.mawia@gmail.com designates 209.85.217.169 as permitted sender) Received: from [209.85.217.169] (HELO mail-lb0-f169.google.com) (209.85.217.169) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2014 10:15:15 +0000 Received: by mail-lb0-f169.google.com with SMTP id 10so2800736lbg.0 for ; Fri, 10 Oct 2014 03:14:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=d74zVrQa67/IfyRfG9gEg/0oxlJc5IBUCJ9u46mKhZg=; b=lV7779p+7WL0722J+5GXAs6RxzEpT9Cus3NlT3XjYJrtA+SpVZG6MkMmNWQcEY1QFC 3dY/yvqLedLskZycnn1ZB4XFkUvdMtCuwaD8ltQgzxhjRe+oAqWvjRWsyAD/nz4H8F3P 1eVWd2gGOFHUHRU7IEN0ff3+gkId7AKKL5rqjUrCqBl8ZVu9iQ2UH9cjL0u4b/CNeiS3 hAhQarXug/cOuDw8OjGFmiQsN4z8i/mDbjchcymKwHmt+cXTcLK7erdTviF4Le+yIsT1 aQG8WQKgKZ9HV831xXEgfOiLMFq63HC2ggRJSG8YcclseNEyWqHxyJSaUNPQL31innC7 fnbA== MIME-Version: 1.0 X-Received: by 10.112.91.41 with SMTP id cb9mr3480394lbb.53.1412935658327; Fri, 10 Oct 2014 03:07:38 -0700 (PDT) Received: by 10.25.80.132 with HTTP; Fri, 10 Oct 2014 03:07:38 -0700 (PDT) Received: by 10.25.80.132 with HTTP; Fri, 10 Oct 2014 03:07:38 -0700 (PDT) In-Reply-To: References: <1046236736.481682.1412930915430.JavaMail.apache@mail72.abv.bg> Date: Fri, 10 Oct 2014 15:37:38 +0530 Message-ID: Subject: Re: Where do System.out and System.err go in Tomcat? From: Ameer Mawia To: Tomcat Users List Content-Type: multipart/alternative; boundary=001a11349fcc01560a05050eb811 X-Virus-Checked: Checked by ClamAV on apache.org --001a11349fcc01560a05050eb811 Content-Type: text/plain; charset=UTF-8 sorry for typos. In catalina.sh in *nix environment and catalina.bat in windows environment. Regards, Ameer Mawia On Oct 10, 2014 3:35 PM, "Ameer Mawia" wrote: > Hi, > > Tomcat by default dump both console output and error in catalina.out under > tomcat-home/log directory. But you can change it any day by modifying > startup script catalina.sh/catalina.bat in *nix environment or > catalina.bat in bin directory of tomcat home. > > Regards, > Ameer Mawia > On Oct 10, 2014 2:19 PM, "M. D." wrote: > >> Hello devs, >> >> I saw this post on the Internet: >> http://www.jguru.com/faq/view.jsp?EID=302980 >> >> > Where do System.out and System.err go in Tomcat? >> > By default, they will go to the console where the tomcat is started. >> You have to modify the startup >> > scripts to redirect them to appropriate files. See Tomcat Mailing List >> for a discussion on how to >> > redirect the System.out and System.err. >> >> > On the other hand, if you are running Tomcat as an NT Service, you can >> modify the conf/wrapper.properties > file and set wrapper.stdout and >> wrapper.stderr properties to point to your log files. >> >> So... what do I have to do in order so that Tomcat5 can redirect >> System.err to logfile instead of just the console. >> >> Best regards, >> Marin >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> --001a11349fcc01560a05050eb811--