You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Volker Ivens <vo...@incub8.de> on 2014/10/23 14:58:58 UTC
Remove EjbTransactionUtil SystemException logging
Hi,
i am using annotations to create a simple @Stateless REST endpoint. Whenever
i make a call which leads to an exception inside my endpoint method, the
EjbTransactionUtil creates a log entry for this /SEVERE:
EjbTransactionUtil.handleSystemException:/.
As we do our own exception handling and logging in a JAX-RS exception
mapper, i was wondering if there is a way to prevent this logging caused by
the EjbTransactionUtil.
We're hesitant of adjusting the logger to ignore the category used by
EjbTransactionUtil, because it is the root category OpenEJB.
i would appreciate ideas how to solve this problem on application level
(instead of TomEE configuration files).
Best regards,
Volker Ivens
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Remove-EjbTransactionUtil-SystemException-logging-tp4672594.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Re: Remove EjbTransactionUtil SystemException logging
Posted by Romain Manni-Bucau <rm...@tomitribe.com>.
Hi
you can configure the associated logger level to OFF or any level
hiding it. We can't remove the call since that's needed by spec.
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-10-23 14:58 GMT+02:00 Volker Ivens <vo...@incub8.de>:
> Hi,
>
> i am using annotations to create a simple @Stateless REST endpoint. Whenever
> i make a call which leads to an exception inside my endpoint method, the
> EjbTransactionUtil creates a log entry for this /SEVERE:
> EjbTransactionUtil.handleSystemException:/.
>
> As we do our own exception handling and logging in a JAX-RS exception
> mapper, i was wondering if there is a way to prevent this logging caused by
> the EjbTransactionUtil.
> We're hesitant of adjusting the logger to ignore the category used by
> EjbTransactionUtil, because it is the root category OpenEJB.
>
> i would appreciate ideas how to solve this problem on application level
> (instead of TomEE configuration files).
>
> Best regards,
>
> Volker Ivens
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Remove-EjbTransactionUtil-SystemException-logging-tp4672594.html
> Sent from the TomEE Users mailing list archive at Nabble.com.