Re: Stack trace of custom exception visible on server
Unfortunately this doesn't work either. I use Log4J and tried to set the levels for the interceptor to FATAL even, but the exception gets logged on the server anyway. This is very annoying. My testcases are flooded with exceptions. Has anyone even encountered this problem? Is it a bug? How would the formatter idea that was suggested before work anyway? dkulp wrote: I don't think there is an (easy) way. With a logging.properties file, you could turn OFF the logging for the org.apache.cxf.phase.PhaseInterceptorChain logger. (set level to WARNING or similar) Nothing would get logged then. The hard way would be to write a custom formatter that you would set for that logger that would not log the stack trace. That would definitely suck. Dan On Wednesday 07 November 2007, Ronald Pieterse wrote: Anyone any ideas? Ronald Pieterse wrote: When I throw a custom exception from the server to the client the stack trace also appears in the server logs. How can I stop that? I just want to print out one line saying the exception is thrown - that's all. -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727C: 508-380-7194 [EMAIL PROTECTED] http://www.dankulp.com/blog -- View this message in context: http://www.nabble.com/Stack-trace-of-custom-exception-visible-on-server-tp13464546p14877655.html Sent from the cxf-user mailing list archive at Nabble.com.
Re: Stack trace of custom exception visible on server
I don't think there is an (easy) way. With a logging.properties file, you could turn OFF the logging for the org.apache.cxf.phase.PhaseInterceptorChain logger. (set level to WARNING or similar) Nothing would get logged then. The hard way would be to write a custom formatter that you would set for that logger that would not log the stack trace. That would definitely suck. Dan On Wednesday 07 November 2007, Ronald Pieterse wrote: Anyone any ideas? Ronald Pieterse wrote: When I throw a custom exception from the server to the client the stack trace also appears in the server logs. How can I stop that? I just want to print out one line saying the exception is thrown - that's all. -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727C: 508-380-7194 [EMAIL PROTECTED] http://www.dankulp.com/blog
Re: Stack trace of custom exception visible on server
Anyone any ideas? Ronald Pieterse wrote: When I throw a custom exception from the server to the client the stack trace also appears in the server logs. How can I stop that? I just want to print out one line saying the exception is thrown - that's all. -- View this message in context: http://www.nabble.com/Stack-trace-of-custom-exception-visible-on-server-tf4710680.html#a13637582 Sent from the cxf-user mailing list archive at Nabble.com.