Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 20925 invoked from network); 20 Jun 2006 11:41:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jun 2006 11:41:09 -0000 Received: (qmail 49379 invoked by uid 500); 20 Jun 2006 11:41:06 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 49363 invoked by uid 500); 20 Jun 2006 11:41:06 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 49352 invoked by uid 99); 20 Jun 2006 11:41:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2006 04:41:06 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of phpmonkey@gmail.com designates 66.249.92.170 as permitted sender) Received: from [66.249.92.170] (HELO ug-out-1314.google.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2006 04:41:05 -0700 Received: by ug-out-1314.google.com with SMTP id k3so3116293ugf for ; Tue, 20 Jun 2006 04:40:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jjei7TVmboo/JMHwgE++830nzJOXozCbn9EYZhODVe7m0inYdGg7cWZqgdAWXp21UuVMn903fwqGzQKrID7vvGR6ibd3xdjrdihVRbz1l7RDX5jZyTDlAjm/WmvZL0CHnkpcZLGzY3Qms1x5LdkmqjcsIIWn+EWa2KZ5cwFeND0= Received: by 10.67.101.10 with SMTP id d10mr2812034ugm; Tue, 20 Jun 2006 04:40:44 -0700 (PDT) Received: by 10.67.15.5 with HTTP; Tue, 20 Jun 2006 04:40:44 -0700 (PDT) Message-ID: <1d40f7c0606200440o1ba384b4xd232ba5d65208a7c@mail.gmail.com> Date: Tue, 20 Jun 2006 01:40:44 -1000 From: "Jerome Gagner" To: user-java@ibatis.apache.org Subject: Re: How to activate iBatis loggin In-Reply-To: <4497DC1A.3020007@isotrol.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4497DC1A.3020007@isotrol.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N In log4j.properties: log4j.logger.com.ibatis=3Ddebug, stdout log4j.logger.java.sql=3Ddebug, stdout log4j.appender.stdout=3Dorg.apache.log4j.ConsoleAppender # ***** stdout uses PatternLayout. log4j.appender.stdout.layout=3Dorg.apache.log4j.PatternLayout # ***** Pattern to output the caller's file name and line number. log4j.appender.stdout.layout.ConversionPattern=3D%5p [%t] (%F:%L) - %m%n or some variant thereof. I'd imagine that you should be able to inject that into your variant On 6/20/06, Seraf=EDn Orill=E1n Chaparro wrot= e: > Hi there! > > I'm a newbie using iBatis and my question is very simple: What do I have > to do to get iBatis loggin its activity? Do I have to add any line in > any xml configuration file? Do I have to call any method from any class > of the framework? What? > > And, after so, my real interest is that iBatis uses my own loggin class, > which derives from log4J. Is it posible? Can i indicate iBatis to use > another class, with all the settings and so on, as logger? > > Thanx a lot in advance > > -- > Seraf=EDn Orill=E1n Chaparro > Isotrol S.A. > Avda. de la Innovaci=F3n 1, 3=AA planta > +34 955 036 800 > e-mail: serafin.orillan@isotrol.com > > >