log4j 끄는 법
log4j2.xml 에서 TRACE, INFO 부분을 ERROR로 변경함!
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Appenders>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout pattern="%d %5p [%c] %m%n" />
</Console>
</Appenders>
<Loggers>
<Logger name="org.apache.commons.digester" level="ERROR" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Logger name="java.sql" level="ERROR" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<!-- log SQL with timing information, post execution -->
<Logger name="jdbc.sqltiming" level="ERROR" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Logger name="jdbc.resultset" level="ERROR" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Logger name="jdbc.audit" level="ERROR" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Logger name="org.mybatis" level="ERROR" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Logger name="egovframework" level="ERROR" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Logger name="org.springframework" level="ERROR" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Logger name="kotra" level="ERROR" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="ERROR">
<AppenderRef ref="console" />
</Root>
</Loggers>
</Configuration>
728x90
300x250