This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring forum!
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"));
I agree. Here's the link:
subject: logging into my own txt file
It's not a secret anymore!