jQuery in Action, 2nd edition
The moose likes Spring and the fly likes How to pass Log4J XML path in Custom Logger Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "How to pass Log4J XML path in Custom Logger" Watch "How to pass Log4J XML path in Custom Logger" New topic
Author

How to pass Log4J XML path in Custom Logger

Abhay Agarwal
Ranch Hand

Joined: Feb 29, 2008
Posts: 693

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

Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to pass Log4J XML path in Custom Logger
 
Similar Threads
How to use Log4j implement singleton ?
struts & where to place log4j.properties
How to get java class name and method name and print it from the method
inject log4j logger
Custom Levels in Log4j