문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top