aspose file tools*
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: logging to a struts - using common logger or jdk 14logger
 
Similar Threads
commons or jdk14 logger to out file
logging runtime exceptions
re: help appreciated
Logging file
re: Java Logger Class