File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: logging to a struts - using common logger or jdk 14logger