ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From max_lazz...@tiscali.it
Subject Re: Logging?
Date Wed, 10 Aug 2005 16:45:42 GMT
this is my "log4j.properties" file placed in the "WEB-INF\Classes" project
directory:

---------------------------------------------------------------------------------

# Global logging configuration
log4j.rootLogger=DEBUG, stdout, DAILY_FILE

# for ibatis
# SqlMap logging configuration...
log4j.logger.com.ibatis=DEBUG,stdout, DAILY_FILE
log4j.logger.com.ibatis.common.jdbc.SimpleDataSource=DEBUG,stdout, DAILY_FILE
log4j.logger.com.ibatis.common.jdbc.ScriptRunner=DEBUG,stdout, DAILY_FILE
log4j.logger.com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate=DEBUG,stdout,
DAILY_FILE
log4j.logger.java.sql.Connection=DEBUG,stdout, DAILY_FILE
log4j.logger.java.sql.Statement=DEBUG,stdout, DAILY_FILE
log4j.logger.java.sql.PreparedStatement=DEBUG,stdout, DAILY_FILE
log4j.logger.java.sql.ResultSet=DEBUG,stdout, DAILY_FILE

# Console output
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%p [%d] [%t] [%c{1}] [%F:%L]
- %m%n

#
# DAILY_FILE is a DailyFileAppender
#
log4j.appender.DAILY_FILE=org.apache.log4j.DailyRollingFileAppender
log4j.appender.DAILY_FILE.File=C:\\logging\\log4j.log
log4j.appender.DAILY_FILE.DatePattern='.'yyyy-MM-dd
log4j.appender.DAILY_FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.DAILY_FILE.layout.ConversionPattern=%-5p %d{ISO8601}: %c.%M()
: %m%n
--------------------------------------------

as stated before the "log4j.rootLogger=DEBUG, stdout, DAILY_FILE" works fine
but
the "log4j.logger.com.ibatis.*" and "log4j.logger.java.sql.*" rows seems
not to have effect on logging. 
Probably I'm missing something in Log4j config cause both "com.ibatis" and
"java.sql" classes do not log anything...




>-- Messaggio Originale --
>Reply-To: user-java@ibatis.apache.org
>Date: Wed, 10 Aug 2005 19:34:01 +0300
>From: Eugeny N Dzhurinsky <eugenydzh@jdevelop.com>
>To: user-java@ibatis.apache.org
>Subject: Re: Logging?
>
>
>On Wed, Aug 10, 2005 at 05:57:05PM +0200, max_lazzari@tiscali.it wrote:
>> Hi,
>> I had "commons-logging.jar" and "log4j-1.2.8.jar" in my project classPath
>> and didn't see logs from iBatis.
>> I tried to add even "commons-logging-api.jar" to the classPath but nothing
>> changed...
>> I'm starting thinking it is Rational (WebSphere Studio) having some problems
>> in showing logs.
>> Just for your info I can see logs that I "call" programmatically with
"log.debug(...)"
>> statement.
>> Still investigating for a solution to this problem.
>
>log4j.logger.com.ibatis=DEBUG
>?
>
>-- 
>Eugene N Dzhurinsky


__________________________________________________________________
TISCALI ADSL 1.25 MEGA
Solo con Tiscali Adsl navighi senza limiti e telefoni senza canone Telecom
a partire da 19,95 Euro/mese.
Attivala entro il 31 agosto, il primo MESE รจ GRATIS! CLICCA QUI.
http://abbonati.tiscali.it/adsl/sa/1e25flat_tc/




Mime
View raw message