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

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
	
	<!-- %d %-5p (%F:%L) - %m%n -->

	<!-- Exception -->
    <appender name="log_file" class="org.apache.log4j.DailyRollingFileAppender">
		<param name="File" value="c:/ntsky_exception.log" />
		<param name="append" value="true" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d %-5p [%t] %C{2} (%F:%L) - %m%n" />
		</layout>
	</appender>
	<appender name="log_console" class="org.apache.log4j.ConsoleAppender">
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/>
		</layout>		
	</appender>

	<logger name="com.ntsky.framework">
		<level value="ERROR"/>
		<!--<appender-ref ref="log_file"/>-->
		<appender-ref ref="log_console"/>
	</logger>

	<!-- 
	<logger name="org.hibernate.cache">
		<level value="DEBUG"/>
		<appender-ref ref="log_console"/>
	</logger>
 	-->
 	
	<logger name="com.ntsky.bbs">
		<level value="DEBUG"/>
		<!-- <appender-ref ref="log_file"/> -->
		<appender-ref ref="log_console"/>
	</logger>

</log4j:configuration>