본문 바로가기
Developer/Spring & eGovFrame

[eGovframe 3.1.1] 에서 server 내릴 때, 에러

by 순수한소년 2016. 11. 18.
728x90
반응형

출처

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>



728x90
반응형