Dispatcher Servlet Configuration in Spring and log4j Configuratin
Log4J : --------------- log4j.properties log4j.rootLogger=ERROR,console #Console Appender log4j.appender.console=org.apache.log4j.ConsoleAppender log4j.appender.console.layout=org.apache.log4j.PatternLayout log4j.appender.console.layout.ConversionPattern=[%5p] [%t %d{hh:mm:ss}] (%F:%M:%L) %m%n #Custom assignments log4j.logger.controller=DEBUG,console log4j.logger.service=DEBUG,console log4j.logger.dao=DEBUG,console #Disable additivity log4j.additivity.controller=false log4j.additivity.service=false log4j.additivity.dao=false web.xml: -------------------- we can configure Dispatcher Servlet and context config location like as follows <?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee ht...
Comments
Post a Comment