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.
I've never used xml config files with Log4J I've always used properties files, but I had a quick look at the Log4jXmlFormat wiki and I can't see an element called category but there is one called logger which appears to have the same structure as your category elements. Are you sure the element is called category?
The above xml configuration is fine. we can use catalog to add multiple appenders as required.
The above code is working i saw some other logs and thought it's not working properly. wasted my time and effort.
Joined: Aug 07, 2007
To be honest I hadn't realised you could even use XML config files with Log4J and they look more readable than the property files I've been using so it has given me something to look into further.