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 5C7AC1782F for ; Fri, 10 Oct 2014 10:05:32 +0000 (UTC) Received: (qmail 21791 invoked by uid 500); 10 Oct 2014 10:05:28 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 21719 invoked by uid 500); 10 Oct 2014 10:05:28 -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 21708 invoked by uid 99); 10 Oct 2014 10:05:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2014 10:05:28 +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 (nike.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:05:03 +0000 Received: by mail-lb0-f169.google.com with SMTP id 10so2803564lbg.28 for ; Fri, 10 Oct 2014 03:05:02 -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=yT0s0Mh1jdYgLwSIoYcfA19MwJIzoNtFAauGfxIsSlw=; b=HAApHa0xryrjz3ouJhQF/oxuf5inrN58bi8uZSitG1rEERCkInDFmbbgCQgZlwP3bm 2+RgWIPD6lMq8wU7aR6Voe1Aur0vimBCiAeXWFe+7zmJf5qGu3Aq9oX3H7n++kSRiA+7 4G/3tOhvKEjs+SC8+hlkpDnF3rzkpmi6PtRYrkzfHygiKNxwosjLwfh2xSiVFLnuJi08 lmcXSGhq+wBLi8HdBSN34Ot2JckS+U+NR5rkY72MZLwc3MMdUKHoh+9hCnGxNJpDCo1W dEIDo/1XlAsUCJfRiSL4Qm8m9fgdTTHBJeKK0nSnz/aF2+9LsUImlTPDC7I/gaZ3fYMb YxSw== MIME-Version: 1.0 X-Received: by 10.112.209.2 with SMTP id mi2mr3417131lbc.51.1412935502191; Fri, 10 Oct 2014 03:05:02 -0700 (PDT) Received: by 10.25.80.132 with HTTP; Fri, 10 Oct 2014 03:05:02 -0700 (PDT) Received: by 10.25.80.132 with HTTP; Fri, 10 Oct 2014 03:05:02 -0700 (PDT) In-Reply-To: <1046236736.481682.1412930915430.JavaMail.apache@mail72.abv.bg> References: <1046236736.481682.1412930915430.JavaMail.apache@mail72.abv.bg> Date: Fri, 10 Oct 2014 15:35:02 +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=001a11c33a66b2e29805050eae57 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c33a66b2e29805050eae57 Content-Type: text/plain; charset=UTF-8 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 > > --001a11c33a66b2e29805050eae57--