Quick solution : log4j.rootLogger=FATAL, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n
Advanced solution : defining a custom logger level for the class which gererates the strack trace : log4j.rootLogger=INFO, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n log4j.logger.<loggername>=FATAL Durgaprasad Rao wrote: > > Hi, > > My log4j.properties entries are as follows: > > ------------------------------------------------- > log4j.rootLogger=INFO, stdout > > log4j.appender.stdout=org.apache.log4j.ConsoleAppender > log4j.appender.stdout.layout=org.apache.log4j.PatternLayout > log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n > ------------------------------------------------- > > Thanks, > Durga > > > Raf177 <[EMAIL PROTECTED]> wrote: > > Have you configured log4j at FATAL level for this logger ? > > > Durgaprasad Rao wrote: >> >> Hi, >> For example, my web service method is throwing the custom exception as >> follows: >> ------------------------------------------------------- >> @WebMethod >> GetWeatherByZipCodeResponse >> GetWeatherByZipCode(@WebParam(name="GetWeatherByZipCode") >> GetWeatherByZipCode body) throws WeatherException; >> ------------------------------------------------------- >> I have a configuration of WeatherException extended from >> FaultInfoException in order to transmit it as a SOAP Fault to the client. >> This works fine. But I see the exception stack trace in the server >> console. Basically I want the fault to be transmitted to the client as >> SOAP fault but did not want to see the exception stack on the server. How >> can we do this? >> Thanks, >> Durga >> >> >> >> --------------------------------- >> Luggage? GPS? Comic books? >> Check out fitting gifts for grads at Yahoo! Search. >> > > -- > View this message in context: > http://www.nabble.com/Custom-Exception-question-tf3896428.html#a11060242 > Sent from the XFire - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > > > > --------------------------------- > Building a website is a piece of cake. > Yahoo! Small Business gives you all the tools to get online. > -- View this message in context: http://www.nabble.com/Custom-Exception-question-tf3896428.html#a11061584 Sent from the XFire - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
