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 5A4E317F2B for ; Mon, 6 Oct 2014 15:02:53 +0000 (UTC) Received: (qmail 79835 invoked by uid 500); 6 Oct 2014 15:02:53 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 79788 invoked by uid 500); 6 Oct 2014 15:02:53 -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 79777 invoked by uid 99); 6 Oct 2014 15:02:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2014 15:02:52 +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 boards@gmail.com designates 209.85.214.170 as permitted sender) Received: from [209.85.214.170] (HELO mail-ob0-f170.google.com) (209.85.214.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2014 15:02:27 +0000 Received: by mail-ob0-f170.google.com with SMTP id uz6so4062233obc.29 for ; Mon, 06 Oct 2014 08:02:25 -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=5B6F5H+WI/vOmbWn7YEMOErrn0dRDu2Y+6b5qnjv0xM=; b=nPaZz9vT9U8KTS7eJJgJmdPbs7q8ffWNGampb2GEL/SLYK0n5Yu4uzEnqQH/UPC86v jpE+YIZEZljTnmx/Z9d+HvUPTM21XbORr5/oKfBhwdWZjAx7dSQnRs5zRnnUhkHVxZhm GBv1c2RaXDluBZGx0dKUzmONqBrF7p9x9pZBlnl04YZbrc5b8WdU6FrlZjBsqJbXW4// urcd4Al2MgcAB7KiHzdIy0IiGcaH8pOkqmWA0EE5FgINjcZudvjhJJgVbIj92RrHi2nG b6567REZR9Nm1NaFPcU1gyHPCShJPbDfyy9h0rtIODeXlYmCV7mF0U4CSrzAKsFW/H8q nmLg== MIME-Version: 1.0 X-Received: by 10.182.20.146 with SMTP id n18mr28369715obe.26.1412607745848; Mon, 06 Oct 2014 08:02:25 -0700 (PDT) Received: by 10.76.84.39 with HTTP; Mon, 6 Oct 2014 08:02:25 -0700 (PDT) In-Reply-To: <9ed1c96747b610ea66ceb5df92048414@mail.gmail.com> References: <3db4fdc186900fabb111803816c218e3@mail.gmail.com> <9ed1c96747b610ea66ceb5df92048414@mail.gmail.com> Date: Mon, 6 Oct 2014 10:02:25 -0500 Message-ID: Subject: Re: Issue with configuration status and Rolling Files From: Matt Sicker To: Log4J Users List Content-Type: multipart/alternative; boundary=e89a8f83a13fe5fb540504c25e28 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f83a13fe5fb540504c25e28 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Are you using log4j-web? Also, are you looking for Tomcat's logs to come from Log4j as well? Because that isn't possible without a JUL adapter (which Log4j 2.1 will have). On 6 October 2014 04:02, sujatha rdn wrote: > Yup. > > Herewith attaching the configuration file. > > And also, in my application, I will be accessing in the following way. > > Public class Logger{ > private static final org.slf4j.Logger slfLogger=3D > LoggerFactory.getLogger("webAnalyticLog"); > private static final org.slf4j.Logger adminSlfLogger=3D > LoggerFactory.getLogger("adminAnalyticLog"); > > if(info.getServiceType() =3D=3D ADMIN){ > adminSlfLogger.info(message); > }else{ > slfLogger.info(message); } > } > > -----Original Message----- > From: Harinath Mallepally [mailto:harinath@careerscale.in] > Sent: Monday, October 06, 2014 2:22 PM > To: Log4J Users List > Subject: Re: Issue with configuration status and Rolling Files > > share the configuration file. > > > > Thanks > Harinath Mallepally > harinath@careerscale.in > Careerscale IT Consulting LLP > +91 9391920444 / 040-42100276 > Hyderabad > > On Mon, Oct 6, 2014 at 2:17 PM, sujatha rdn > wrote: > > > Hi, > > > > > > > > I have migrated to log4j2 with slf4j adapter. But I am facing some > issues. > > > > > > > > 1. When I add configuration status I > > don=E2=80=99t see any logs related to log4j in my catalina logs > > > > 2. And also, I have 5 loggers mapped to 5 different rolling files= . > > But only 4 files get created in the specified location and in that > > only one files gets updated with the logs. > > > > > > > > Here are some details that you want to know before you suggest me a > > solution. > > > > 1. I am working on servlet 2.5 web application and our container = is > > tomcat 7. > > > > 2. I am using slf4j adapter as interface in my application to > access > > log4j2 > > > > > > > > Do please let me know if you need any further details to help me out. > > > > > > > > > > > > Thanks, > > > > Sujatha > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org > --=20 Matt Sicker --e89a8f83a13fe5fb540504c25e28--