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 Struts and the fly likes logging to a struts - using common logger or jdk 14logger Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "logging to a struts - using common logger or jdk 14logger" Watch "logging to a struts - using common logger or jdk 14logger" New topic
Author

logging to a struts - using common logger or jdk 14logger

mary morris
Ranch Hand

Joined: Mar 16, 2002
Posts: 97
I would like to add logging to a struts application - but not sure how to

I have common logger set up and it is working but only writes to the console

how in the properties file would I specify an file to put it out to

I ran across this:
Handler fh = new FileHandler("%t/wombat.log");
Logger.getLogger("").addHandler(fh);


but I would like it in the properites file

org.apache.commons.logging.simplelog.???

thank you!!

also what goes in the commons-logger.properties and what should go in the simplelog.properties
 
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: logging to a struts - using common logger or jdk 14logger
 
It's not a secret anymore!