This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
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: 1340

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 8 Programmer I (1Z0-808), Oracle Java Web Service Developer (1z0-897), Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I, CIW Certified Ecommerce specialist
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to pass Log4J XML path in Custom Logger
 
jQuery in Action, 3rd edition