Re: [S2] Logging Issues

2008-04-01 Thread Kelly Graus
Hi Laurie, Thanks for the reply! I found the "swallowOutput" attribute in the Tomcat context that caused the exceptions to be placed in my application log. However, I'm now setting up global exception mapping in struts so I can handle unexpected problems without showing the user a stack trace

Re: [S2] Logging Issues

2008-04-01 Thread Laurie Harper
You can't have log4j route exception errors to the log file if you don't catch the exception and pass it to log4j... If you allow the exception to propagate all the way up, it will be logged by the container. Short story: if you want to control where something gets logged to, you need to contro

[S2] Logging Issues

2008-03-31 Thread Kelly.Graus
r.org.apache.struts2=WARN log4j.logger.org.springframework=WARN log4j.logger.org.hibernate=WARN log4j.logger.org.apache.jasper=WARN log4j.logger.org.apache.catalina=WARN log4j.logger.com.opensymphony.xwork2=WARN -- View this message in context: http://www.nabble.com/-S2--Logging-Issues-tp16399078p16399078.html Sent from

Re: s2: Logging

2007-07-13 Thread Laurie Harper
Yes, you need to configure Log4J; just dropping the JAR in isn't enough for it to 'magically' know what you want it to do with log messages. See the Log4J documentation for details on configuration. As a quick start, you can create a WEB-INF/classes/log4j.properties with the following content:

Re: s2: Logging

2007-07-13 Thread Leena Borle
Hi, I did not add log4J.xml in the classpath. I am following "mailreader" tutorial and did not see any in that application too. Do I have to add it explicitly ? Leena On 7/13/07, Dave Newton <[EMAIL PROTECTED]> wrote: Perhaps more importantly, do you have a log4j xml or properties configurati

Re: s2: Logging

2007-07-13 Thread Dave Newton
Perhaps more importantly, do you have a log4j xml or properties configuration file on the classpath? (IIRC you do not need to explicitly initialize.) --- Gary Feidt <[EMAIL PROTECTED]> wrote: > What did you use for an Initialization procedure? > > >>> [EMAIL PROTECTED] 7/12/2007 3:21:42 PM >>> >

Re: s2: Logging

2007-07-13 Thread Gary Feidt
What did you use for an Initialization procedure? >>> [EMAIL PROTECTED] 7/12/2007 3:21:42 PM >>> Hi, How to enable logging in S2? I added log4j.jar and isDebug statements in my actions, but do not see any messages. Leena ___ Confidentia

s2: Logging

2007-07-12 Thread Leena Borle
Hi, How to enable logging in S2? I added log4j.jar and isDebug statements in my actions, but do not see any messages. Leena

Re: s2 logging

2007-06-04 Thread Dave Newton
--- bob <[EMAIL PROTECTED]> wrote: > Does S2 support logging? What do you mean by "logging"? I just use Log4J (generally through commons-logging). What support do you believe it's lacking? d. Be a be

s2 logging

2007-06-04 Thread bob
This is clearly a newbie question but i can find no info. Sorry to be dumb. Does S2 support logging? Of course, I now that I can use other logging myself, but I tried to find ways in which S2 provides direct support for logging. I was thinking there would be an interceptor or something.