Pregunta

We have gone into production with a GWT/RequestFactory based app. All pretty good but debugging is tough as we currently don't always know the service methods being called.

What is best practice for making life easy for ourselves when we have problems in our logs?

We use MDC to have username, user agent in our logs but it doesn't look that easy to log RequestFactory service method.

Many thanks

¿Fue útil?

Solución

You can use a ServiceLayerDecorator and override its invoke method to add your log (or MDC key/value) here.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top