aspose file tools
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "logging into my own txt file" Watch "logging into my own txt file" New topic

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 =
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"));
It is sorta covered in the JavaRanch Style Guide.
subject: logging into my own txt file