Return-Path: Delivered-To: apmail-logging-log4cxx-user-archive@www.apache.org Received: (qmail 93603 invoked from network); 24 Nov 2009 12:24:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Nov 2009 12:24:04 -0000 Received: (qmail 31222 invoked by uid 500); 24 Nov 2009 12:24:03 -0000 Delivered-To: apmail-logging-log4cxx-user-archive@logging.apache.org Received: (qmail 31182 invoked by uid 500); 24 Nov 2009 12:24:03 -0000 Mailing-List: contact log4cxx-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4CXX User" List-Id: Delivered-To: mailing list log4cxx-user@logging.apache.org Received: (qmail 31172 invoked by uid 99); 24 Nov 2009 12:24:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2009 12:24:03 +0000 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=MIME_QP_LONG_LINE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [80.38.72.5] (HELO encopim.encopim) (80.38.72.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2009 12:23:54 +0000 Received: (qmail 5297 invoked by uid 33); 24 Nov 2009 13:23:34 +0100 Received: from 192.168.0.244 ([192.168.0.244]) by webmail.encopim.com (Horde MIME library) with HTTP; Tue, 24 Nov 2009 13:23:34 +0100 Message-ID: <20091124132334.1vjy3gc9z40c8ssg@webmail.encopim.com> Date: Tue, 24 Nov 2009 13:23:34 +0100 From: carlos_jimenez@encopim.com To: log4cxx-user@logging.apache.org Subject: Re: Problems executing application with log4cxx References: <20091124130543.f8u0n1t258g08cgc@webmail.encopim.com> In-Reply-To: <20091124130543.f8u0n1t258g08cgc@webmail.encopim.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) X-Virus-Checked: Checked by ClamAV on apache.org The problem seems to be the size of log file, but now I have another problem= . If I want to use logger Sistema.RTEST, it doesn't work, but if I use =20 rootLooger, works fine. SistemaRTEST4Cilindres.cpp #include "SistemaRTEST4Cilindres.h" LoggerPtr loggerSistemaRTEST(Logger::getLogger("Sistema.RTEST")); //LoggerPtr loggerSistemaRTEST(Logger::getRootLogger()); void SistemaRTEST4Cilindres::obrirTargetes(){ LOG4CXX_INFO(loggerSistemaRTEST, "Abrimos los dispositivos para =20 las targetas que tenemos"); // EDITAR: targetes[iE6229_1]->open("/dev/comedi0"); } .... The only difference with other examples is that this code is inside a =20 directory. main.cpp Sistema/SistemaRTEST4Cilindres.h Sistema/SistemaRTEST4Cilindres.cpp I've tested in the main directoy and that worked correctly. That's =20 what I'm doing wrong? Thank you Quoting carlos_jimenez@encopim.com: > Hello, > > First, sorry for my english. > > I'm new with log4cxx and I have problems. When I use > PropertyConfiguration into my code, application crashes, but if I use > BasicConfiguration, works fine. > > #include > #include > #include "Sistema/SistemaRTEST4Cilindres.h" > > using namespace log4cxx; > > LoggerPtr logger(Logger::getLogger("main")); > > int main(int argc, char *argv[]){ > SistemaRTEST4Cilindres *sistema=3DNULL; > > PropertyConfigurator::configure("/etc/rtai/log/log4cxx.properties"); > > LOG4CXX_FATAL(logger, '\n'); > LOG4CXX_INFO(logger, "Programa main(): Cargamos el sistema"); > > .... > > > /etc/rtai/log/log4cxx.properties > > # Sample ResourceBundle properties file > log4j.rootLogger=3DINFO, R > > log4j.appender.R=3Dorg.apache.log4j.RollingFileAppender > log4j.appender.R.File=3D/var/log/rtaid.log > > log4j.appender.R.MaxFileSize=3D200KB > log4j.appender.R.MaxBackupIndex=3D10 > > log4j.appender.R.layout=3Dorg.apache.log4j.PatternLayout > log4j.appender.R.layout.ConversionPattern=3D%d [%t] %-3p (%F:%L) - %m%n > > log4j.logger.Cicle=3DWARN > log4j.logger.DadesFase=3DWARN > log4j.logger.Fase=3DWARN > log4j.logger.Modul=3DWARN > log4j.logger.Sistema=3DWARN > #log4j.logger.Sistema.RTEST=3DWARN > log4j.logger.Transicions=3DWARN > #log4j.logger.ServidorDades=3DWARN > > > My host OS is Debian, someone have any idea?? > > Thank you. > > > --=20 > Carlos Jim=C3=A9nez > > ENCOPIM S.L. > C/. del Parc 5 (nau 13), P.I. Els Pinetons > E-08291 RIPOLLET (Barcelona) > Tel: (+34) 935 94 23 47 > Fax: (+34) 935 94 64 15 > > =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=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 > La informaci=C3=B3n contenida en la presente transmisi=C3=B3n es confidenc= ial y su > uso =C3=BAnicamente est=C3=A1 permitido a su(s) destinatario(s). Si Ud. no= es la > persona destinataria de la presente transmisi=C3=B3n, rogamos nos lo > comunique de manera inmediata por tel=C3=A9fono (+34 935 942 347) y destru= ya > cualquier copia de la misma (tanto digitales como en papel). > > The information contained in this transmission is confidential and is > intended only for the use of the addressee(s). If you are not the > designated recipient of this transmission, please advise us immediately > by telephone (+34 935 942 347) and destroy any copies (digital and > paper). > =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=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 --=20 Carlos Jim=C3=A9nez ENCOPIM S.L. C/. del Parc 5 (nau 13), P.I. Els Pinetons E-08291 RIPOLLET (Barcelona) Tel: (+34) 935 94 23 47 Fax: (+34) 935 94 64 15 =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=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 La informaci=C3=B3n contenida en la presente transmisi=C3=B3n es confidencia= l y su uso =C3=BAnicamente est=C3=A1 permitido a su(s) destinatario(s). Si Ud. no e= s la persona destinataria de la presente transmisi=C3=B3n, rogamos nos lo comunique de manera inmediata por tel=C3=A9fono (+34 935 942 347) y destruya cualquier copia de la misma (tanto digitales como en papel). The information contained in this transmission is confidential and is intended only for the use of the addressee(s). If you are not the designated recipient of this transmission, please advise us immediately by telephone (+34 935 942 347) and destroy any copies (digital and paper). =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=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