(?xml version="1.0" encoding="UTF-8"?)
(!DOCTYPE configuration SYSTEM "log4j.dtd" PUBLIC "-//APACHE//DTD LOG4J 1.2//EN")
-(log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/")
(!-- Appenders --)
-(appender class="org.apache.log4j.ConsoleAppender" name="console")
(param name="Target" value="System.out"/)
-(layout class="org.apache.log4j.PatternLayout")
(param name="ConversionPattern" value="%-5p: %c - %m%n"/)
(/layout)
(/appender)
(!-- Application Loggers --)
-(logger name="com.journaldev.spring")
(level value="info"/)
(/logger)
(!-- 3rdparty Loggers --)
-(logger name="org.springframework.core")
(level value="info"/)
(/logger)
-(logger name="org.springframework.beans")
(level value="info"/)
(/logger)
-(logger name="org.springframework.context")
(level value="info"/)
(/logger)
-(logger name="org.springframework.web")
(level value="info"/)
(/logger)
(!-- Root Logger --)
-(root)
(priority value="warn"/)
(appender-ref ref="console"/)
(/root)
(/log4j:configuration)
No comments:
Post a Comment