Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 6539 invoked from network); 24 Sep 2008 18:51:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Sep 2008 18:51:09 -0000 Received: (qmail 29238 invoked by uid 500); 24 Sep 2008 18:51:01 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 29203 invoked by uid 500); 24 Sep 2008 18:51:01 -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 29192 invoked by uid 99); 24 Sep 2008 18:51:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Sep 2008 11:51:01 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of andrecs2@gmail.com designates 209.85.217.11 as permitted sender) Received: from [209.85.217.11] (HELO mail-gx0-f11.google.com) (209.85.217.11) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Sep 2008 18:50:02 +0000 Received: by gxk4 with SMTP id 4so5926129gxk.22 for ; Wed, 24 Sep 2008 11:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=wSv6mZEsHQzV5iSBFkaQDqH6t66FFzBaHocUxifvyYQ=; b=e6wmWNBRMM3Rcb40lZeydkzFWlg7FWNKYBh/4QXsfEp0m5tAHMu2wWj0N3oyb+FtXf 6FHsD2mfluOrrYiIZGStgDWdSwC2Y5Q25n7ApEzkWOrCxq7RGY/5kCoUAENs5nItdQeX 14raeACAS0OUdwGdQKRBgVRSYSFVvrAMQXcew= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=KASfyfdTuMxVgf77QhVIv8NyW6j1l8+RlGaa1mU+NKw1HEb7H/8HhkcE6H6+bije5b uNTjcWv4fiD+QPCXfMpcBgDkoCYqTpM6kcyLKaaGssKYl1O1yof5jCcldNnL5cSLhmjH 1zCrLRnycna7mAVN+zcwxjUtWpjtZr/4gdWOU= Received: by 10.151.47.7 with SMTP id z7mr2459116ybj.0.1222282235232; Wed, 24 Sep 2008 11:50:35 -0700 (PDT) Received: by 10.150.144.21 with HTTP; Wed, 24 Sep 2008 11:50:35 -0700 (PDT) Message-ID: Date: Wed, 24 Sep 2008 15:50:35 -0300 From: "=?ISO-8859-1?Q?Andr=E9_Carlos?=" To: "Log4J Users List" Subject: Re: Log in differents files Cc: hoju@visi.com In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_18379_193611.1222282235188" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_18379_193611.1222282235188 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline the log4j write only in first appender, in the second appender it create th= e file but dont't write the log log4j.debug=3Dtrue log4j.rootLogger=3DDEBUG, Console, A1 log4j.appender.Console=3Dorg.apache.log4j.ConsoleAppender log4j.appender.Console.layout=3Dorg.apache.log4j.PatternLayout log4j.appender.Console.layout.ConversionPattern=3DSAGBA - %-2d{dd/MM/yy HH:= mm} [%5p] %c:%L - %m%n log4j.appender.A1=3Dorg.apache.log4j.DailyRollingFileAppender log4j.appender.A1.File=3D${catalina.home}/logs/A1.log log4j.appender.A1.DatePattern=3D'.'dd-MM-yyyy'.log' log4j.appender.A1.Append=3Dtrue log4j.appender.A1.ImmediateFlush=3Dtrue: log4j.appender.A1.layout=3Dorg.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=3DA1 - %-2d{dd/MM/yy HH:mm} [%5p= ] %c:%L - %m%n log4j.logger.org.apache.axis=3DERROR log4j.logger.org.apache.fop=3DERROR log4j.logger.br.gov.ba.ssp.sigip.tarefas=3DDEBUG,A2 log4j.additivity.com.app.tarefas=3Dfalse log4j.logger.org.apache.struts=3DERROR log4j.logger.org.apache.struts.action=3DDEBUG log4j.logger.org.apache.catalina=3DERROR log4j.logger.org.apache.jasper=3DERROR log4j.logger.org.apache.commons=3DERROR log4j.logger.org.directwebremoting=3DERROR log4j.logger.org.hibernate=3DERROR log4j.logger.com.mchange.v2=3DERROR log4j.logger.com.centrasite.jaxr=3DERROR log4j.logger.com.fw.tamino.xqj=3DERROR log4j.logger.com.fw.components.integration=3DDEBUG log4j.logger.com.fw.components.auth=3DINFO log4j.logger.com.fw.components.view.tags=3DINFO log4j.logger.com.fw.components.persistence.hibernate.HibernateUtil=3DINFO log4j.logger.com.fw.components.view.tags.BackTag=3DDEBUG log4j.logger.com.fw.components.util.ValueObjectUtil=3DERROR log4j.logger.com.fw.components.business.entity.AbstractValueObject=3DINFO log4j.logger.com.app.operacao.atendimento.proxy.AtendimentoService=3DERROR log4j.logger.com.app.versao.VersionarPrototypeDecorator=3DERROR log4j.logger.com.app.administracao.seguranca.login.controller.action.LoginA= ction=3DINFO log4j.logger.com.app.administracao.seguranca.filter.SigipHibernateFilter=3D= INFO log4j.logger.com.app.administracao.auditoria.persistence.hibernate.intercep= tor=3DDEBUG log4j.appender.A2=3Dorg.apache.log4j.DailyRollingFileAppender log4j.appender.A2.File=3D${catalina.home}/logs/A2.log log4j.appender.A2.DatePattern=3D'.'dd-MM-yyyy'.log' log4j.appender.A2.Append=3Dtrue log4j.appender.A2.ImmediateFlush=3Dtrue: log4j.appender.A2.layout=3Dorg.apache.log4j.PatternLayout log4j.appender.A2.layout.ConversionPattern=3DA2 - %-2d{dd/MM/yy HH:mm} [%5p= ] %c:%L - %m%n -------------------------------------------------------- sds carpe diem ama sua, ama llulla, ama chella Andr=E9 Carlos =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D NETiqueta: Ao encaminhar esta mensagem, por favor: 1. Apague o MEU endere=E7o eletr=F4nico; 2. Encaminhe como c=F3pia oculta (CCO; BCC) aos SEUS destinat=E1rios. Obrigado! Fred Allen - "What's on your mind, if you will allow the overstatement?" On Wed, Sep 24, 2008 at 15:25, Jacob Kjome wrote: > I don't think that the properties config format imposes any particular > ordering. What do you mean it isn't working? what isn't working? Pleas= e > post a sample of your config. You can also start your app with > -Dlog4j.debug=3Dtrue and see if Log4j is even using your config file. Ke= ep in > mind, if log4j.xml is found in the classpath, it will be used in preferen= ced > to log4j.properties when using autoconfiguration. > > Jake > > > On Wed, 24 Sep 2008 15:12:32 -0300 > > "Andr=E9 Carlos" wrote: > >> Is exactly what i need, but, don't work here. The order what i put the >> configs influences the final result? >> >> -------------------------------------------------------- >> sds >> carpe diem >> ama sua, ama llulla, ama chella >> Andr=E9 Carlos >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D >> NETiqueta: >> Ao encaminhar esta mensagem, por favor: >> 1. Apague o MEU endere=E7o eletr=F4nico; >> 2. Encaminhe como c=F3pia oculta (CCO; BCC) aos SEUS destinat=E1rios. >> Obrigado! >> Bill Cosby - "Always end the name of your child with a vowel, so that >> when >> you yell the name will carry." >> >> On Wed, Sep 24, 2008 at 14:54, Jacob Kjome wrote: >> >> It would be helpful to see your config. But I can imagine what you mig= ht >>> be missing. You need to look into the concept of additivity. By defau= lt >>> it >>> is "true". This means that a child inherits the appenders and levels o= f >>> parents. You want to set this to false. For instance, the following >>> config >>> sets up defaults for all packages using the root logger with a console >>> appender and a level of WARN. All loggers inherit this, except for the >>> "org.mypackage" logger and all children of this logger, which will log = at >>> the INFO level to the mypackageAppender. The key to doing this is the >>> line >>> "log4j.additivity.org.mypackage=3Dfalse". >>> >>> >>> log4j.appender.defaultAppender=3Dorg.apache.log4j.ConsoleAppender >>> log4j.appender.defaultAppender.layout=3Dorg.apache.log4j.PatternLayout >>> log4j.appender.defaultAppender.layout.ConversionPattern=3D%-5p [%-8.8t]= : >>> %39.39c %-6r - %m%n >>> >>> log4j.appender.mypackageAppender=3Dorg.apache.log4j.RollingFileAppender >>> log4j.appender.mypackageAppender.File=3D${log.dir}/mypackage.log >>> log4j.appender.mypackageAppender.MaxFileSize=3D1000KB >>> log4j.appender.mypackageAppender.MaxBackupIndex=3D5 >>> log4j.appender.mypackageAppender.layout=3Dorg.apache.log4j.PatternLayou= t >>> log4j.appender.mypackageAppender.layout.ConversionPattern=3D%-5p [%-8.8= t]: >>> %39.39c %-6r - %m%n >>> >>> log4j.logger.org.mypackage=3DINFO, mypackageAppender >>> log4j.additivity.org.mypackage=3Dfalse >>> >>> log4j.rootLogger=3DWARN, defaultAppender >>> >>> >>> >>> Jake >>> >>> >>> On Wed, 24 Sep 2008 13:54:38 -0300 >>> "Andr=E9 Carlos" wrote: >>> >>> Hi, >>>> >>>> I'm like make logs of different packages in differents files, but, aft= er >>>> try >>>> much not achieve a configuration corret. >>>> >>>> please, i need a hand >>>> -------------------------------------------------------- >>>> sds >>>> carpe diem >>>> ama sua, ama llulla, ama chella >>>> Andr=E9 Carlos >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D >>>> NETiqueta: >>>> Ao encaminhar esta mensagem, por favor: >>>> 1. Apague o MEU endere=E7o eletr=F4nico; >>>> 2. Encaminhe como c=F3pia oculta (CCO; BCC) aos SEUS destinat=E1rios. >>>> Obrigado! >>>> Yogi Berra - "You wouldn't have won if we'd beaten you." >>>> >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org >>> For additional commands, e-mail: log4j-user-help@logging.apache.org >>> >>> >>> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org > > ------=_Part_18379_193611.1222282235188--