ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Berri <marco.be...@bluestudio.it>
Subject Problem with log4j
Date Thu, 06 Oct 2005 08:51:24 GMT
Hi!

My application using ibatis 2.1.5.582

Ibatis NOT WRITE LOG INFORMATIONS!!!!!!

PLEASE HELP ME !!!!

Marco Berri


Using: log4j 1.2.11

log4j.xml :


<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">


	 <appender name="tnes-fat-mail" class="org.apache.log4j.net.SMTPAppender">
	 	<param name="Threshold" value="FATAL"/>	
	 	<param name="SMTPHost" value="${org.tnes.log.smtp}"/>
		<param name="To" value="${org.tnes.log.mailto}"/>
		<param name="From" value="${org.tnes.log.mailfrom}"/>
		<param name="Subject" value="${org.tnes.log.mailsubject}"/>
		<layout class="org.apache.log4j.PatternLayout">
				<param name="ConversionPattern" value="%-5p [%d{yyyy-MM-dd 
HH:mm:ss}] %x %c [%l] \n %m%n"/>
		</layout>
	</appender>


	<appender name="com-ibatis" class="org.apache.log4j.RollingFileAppender">
		<param name="File" value="usr/local/ibatis/ibatis.log" />
		<param name="MaxFileSize" value="1MB"/>
		<param name="MaxBackupIndex" value="5"/>
         	<layout class="org.apache.log4j.PatternLayout">
         	    <param name="ConversionPattern" value="%-5p [%d{yyyy-MM-dd 
HH:mm:ss}] %x %c [%l] - %m%n"/>
         	</layout>
     </appender>

	 <logger name="com.ibatis" additivity="true">
	 	 <level value="ALL"/>
        <appender-ref ref="com-ibatis" />
	</logger>

	<root>
		<level value="fatal"/>
		<appender-ref ref="tnes-fat-mail" />
	</root>

	

</log4j:configuration>


Mime
View raw message