출처
http://coders-kitchen.com/2014/01/29/tip-disable-log4j-2s-shutdown-handler/
문제
Exception in thread "log4j-shutdown" java.lang.NullPointerException
본문의 해결방안
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN" monitoringInterval="30" shutdownHook="disable">
<Appenders>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout pattern="%d %5p [%c] %m%n" />
</Console>
</Appenders>
<Loggers>
<Logger name="java.sql" level="INFO" additivity="false">
<AppenderRef ref="console" />
</Logger>
<Logger name="egovframework" level="DEBUG" additivity="false">
<AppenderRef ref="console" />
</Logger>
<!-- log SQL with timing information, post execution -->
<Logger name="jdbc.sqltiming" level="INFO" additivity="false">
<AppenderRef ref="console" />
</Logger>
<Logger name="org.springframework" level="INFO" additivity="false">
<AppenderRef ref="console" />
</Logger>
<Logger name="com.ibatis" level="DEBUG" additivity="false">
<AppenderRef ref="console" />
</Logger>
<Logger name="java.sql" level="DEBUG" additivity="false">
<AppenderRef ref="console" />
</Logger>
<Logger name="org.exolab.castor" level="DEBUG" additivity="false">
<AppenderRef ref="console" />
</Logger>
<!-- hibernate log START -->
<Logger name="org.hibernate.SQL" level="DEBUG" additivity="false">
<AppenderRef ref="console" />
</Logger>
<Logger name="org.hibernate.type" level="DEBUG" additivity="false">
<AppenderRef ref="console" />
</Logger>
<!-- hibernate log END -->
<Root level="ERROR">
<AppenderRef ref="console" />
</Root>
</Loggers>
</Configuration>