In log4j.properties: log4j.logger.com.ibatis=debug, stdout log4j.logger.java.sql=debug, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender # ***** stdout uses PatternLayout. log4j.appender.stdout.layout=org.apache.log4j.PatternLayout # ***** Pattern to output the caller's file name and line number. log4j.appender.stdout.layout.ConversionPattern=%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ín Orillán Chaparro <[EMAIL PROTECTED]> wrote:
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ín Orillán Chaparro Isotrol S.A. Avda. de la Innovación 1, 3ª planta +34 955 036 800 e-mail: [EMAIL PROTECTED]
