wood burning stoves 2.0*
The moose likes Struts and the fly likes logging into my own txt file 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 into my own txt file" Watch "logging into my own txt file" New topic
Author

logging into my own txt file

lee anthony
Ranch Hand

Joined: Jan 23, 2004
Posts: 35
hi to everybody
i have below example to explain my question, i could not find my answer
about how can i log my information into my own txt file kept
in say /home/lee/tomcat5/leelog.txt
2)what is org.apache.struts.webapp.Example to do in the below snippet

thank lee
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public final class EditSubscriptionAction extends Action {
private Log log =
LogFactory.getLog("org.apache.struts.webapp.Example");
public ActionForward execute(ActionMapping mapping, ..)
throw Exception{
....
if (log.isDebugEnabled()) {
log.debug("EditSubscriptionAction: Processing " + action + " action");
}
....
if (user == null) {
if (log.isTraceEnabled()) {
log.trace(" User is not logged on in session " + session.getId());
}
return (mapping.findForward("logon"));
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: logging into my own txt file
 
Similar Threads
Can I have a response object content type = "null"?
Comparing two huge files
Regarding problems accessing a text file using its relative path location
apache: serving .txt files, and user apps
Lucene beginner question