Return-Path: X-Original-To: apmail-logging-log4j-user-archive@www.apache.org Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B97131062B for ; Sat, 22 Mar 2014 00:27:24 +0000 (UTC) Received: (qmail 92634 invoked by uid 500); 22 Mar 2014 00:27:23 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 92590 invoked by uid 500); 22 Mar 2014 00:27:23 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 92581 invoked by uid 99); 22 Mar 2014 00:27:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Mar 2014 00:27:23 +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 garydgregory@gmail.com designates 209.85.160.49 as permitted sender) Received: from [209.85.160.49] (HELO mail-pb0-f49.google.com) (209.85.160.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Mar 2014 00:27:18 +0000 Received: by mail-pb0-f49.google.com with SMTP id jt11so3049694pbb.36 for ; Fri, 21 Mar 2014 17:26:56 -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=jXrWhDMXY8fI1b6/btAVqPw8Z510Im/ikl27ot6YJ/E=; b=UJaoJCiyBULVyLIBYoc51IAwm2otkIe8YwxrRDbzYMYcFHkNcdKvpLGPV0m9/4gHzT 9se/fWUFJbg9tH8r/fHyTyqZ3liZwVcRWGNGWmJWGVv28xZqxZIKwaOfyggu9cJE123L xIdWj1GxMbsVSVD8f3nVoYjaFfKGMiSnmisg/W204PnHioxc2WuFkj12+XPcELrMMAA9 JyF017vhFlz+O6xTCWoLjQ9FevXfYNqdl83Swm/yxvcnu2lBcXylMZCQZ3zqnuoi7ocd n5ToOBrocyVAnropzY8fgU/jbnhhqS5NkPou76TRO3G5nosnB8tjsN292DsznzynM/xL dNSg== MIME-Version: 1.0 X-Received: by 10.66.240.130 with SMTP id wa2mr56898147pac.73.1395448002132; Fri, 21 Mar 2014 17:26:42 -0700 (PDT) Received: by 10.70.30.33 with HTTP; Fri, 21 Mar 2014 17:26:42 -0700 (PDT) In-Reply-To: <532B44F2.2030601@cirrhus9.com> References: <532B44F2.2030601@cirrhus9.com> Date: Fri, 21 Mar 2014 20:26:42 -0400 Message-ID: Subject: Re: log4.properties not honoring properties From: Gary Gregory To: Log4J Users List Content-Type: multipart/alternative; boundary=047d7b15a4b778404c04f5270e92 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b15a4b778404c04f5270e92 Content-Type: text/plain; charset=UTF-8 What happens if you try the latest bug fix version: 1.2.17? Gary On Thu, Mar 20, 2014 at 3:43 PM, JJ wrote: > Greetings to the list: > > We have a log4j v.1.2.14 on my CentOS 6.4 host with tomcat v6.0.24 > > Our Application Servlet is version 2.5 and we did not develop this > application. > our classes directory has a single log4j.properties with this content: > log4j.rootLogger=DEBUG, R > log4j.appender.R = org.apache.log4j.DailyRollingFileAppender > log4j.appender.R.File = logs/FileServer.log > log4j.appender.R.Append = true > log4j.appender.R.DatePattern = '.'yyy-MM-dd > log4j.appender.R.layout = org.apache.log4j.PatternLayout > log4j.appender.R.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} > %c{1} [%p] %m%n > > My concern is that the FileServer.log file is being written to > /var/log/tomcat6 and not /logs > > Following the direction at > http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_Log4j > specifically, the /Note: /that says > "These steps are *not* needed if you just want to use log4j in your own > web application. --- In that > case, just put |log4j.jar| and |log4j.properties| into |WEB-INF/lib| and > |WEB-INF/classes| of your web application. > > which I have done and bounced the tomcat6 service. > > What I notice are these things: > There is a > /etc/tomcat6/log4j.properties as well. > > the FileServer.log files shows "log5jImp" ? > 2014-03-20 12:07:21 *Log5jImp* [DEBUG] Starting FileServer Restlet > Listener.... > > Sure could use a hand in getting the FileServer.log file logging to > /logs/FileServer.log > > Thank you for your valuable time. > Have a Great Day! > > -- > John Jones > cirrhus9.com > > -- E-Mail: garydgregory@gmail.com | ggregory@apache.org Java Persistence with Hibernate, Second Edition JUnit in Action, Second Edition Spring Batch in Action Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory --047d7b15a4b778404c04f5270e92--