Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to pass Log4J XML path in Custom Logger

 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Spring MVC 3.0 application, i have defined a Cusotm Log4J logger class. It constructor is private. It has one getInstance() method which create instance of custom Log4J Logger. I want to pass log4j.xml path in its static getInstance() method through Spring bean configuration file.
Please let me know how to achieve it.

~ abhay
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic