|
|
| configure log4j for WebApplication |
Expert:shyam
<p>configure log4j for WebApplication</p> |
| Answers |
Hello,<br /><br />I seems that log4j.properties file is missing in your project.<br /><br />So create log4j.properties file with following content:<br /><br /># Default Logging Configuration<br /> log4j.rootLogger=INFO, stdout<br />#to increase logging level<br />#log4j.logger.org.dcm4cheri=DEBUG<br /><br /> #to decrease logging level<br /> #log4j.logger.org.dcm4cheri=ERROR<br /> log4j.appender.stdout=org.apache.log4j.ConsoleAppe nder<br /> log4j.appender.stdout.layout=org.apache.log4j.Patt ernLayout<br /> log4j.appender.stdout.layout.ConversionPattern=%d{ ABSOLUTE} %-5p %x - %m\n<br /><br /><br />and then copy log4j.properties in class path. To put the file into class path you can copy the file the classes directory of the web application.<br /><br />Hope this will solve your problem. Don’t forgot to update your experience on this page.<br /><br />Thanks<br />
|
| More Questions |
|
|
Post Answers
Ask Question
Facing Programming Problem?
|
|
|
|
|