*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: logging to a struts - using common logger or jdk 14logger
 
Similar Threads
Logging file
commons or jdk14 logger to out file
logging runtime exceptions
re: Java Logger Class
re: help appreciated