-1

Actually I have confusion in adding a Log4j file with my project. My project is a web dynamic (struts2+spring+hibernate) project.Now how to add the log4j file with my project.

please could anyone refer me a website or else please give any solution to solve this issue. Currently I need know, how to get Log4j into a web dynamic project. Thanks in Advance Friends

2

1 Answer 1

0

if your project is maven project, then you need to add apache log4j dependency to your pom and follow below url for configuration

http://www.mkyong.com/spring-mvc/spring-mvc-log4j-integration-example/

or you can have java util logging which is provided in java standard library, check in below url

Good examples using java.util.logging

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.