Hi all,
Any advice on how to log what SD JPA is doing? I tried the AspectJ-based way described at http://static.springsource.org/sprin...reference/html in the appendix section B.1.1, which seems a bit heavyweight:I've set a TRACE level logger for org.springframework.data, which is the only way that I've seen any output.Code:<bean id="customizableTraceInterceptor" class="org.springframework.aop.interceptor.CustomizableTraceInterceptor"> <property name="useDynamicLogger" value="true"/> </bean> <aop:config> <aop:advisor advice-ref="customizableTraceInterceptor" pointcut="execution(public * org.springframework.data.jpa.repository.JpaRepository+.*(..))"/> </aop:config>
Also note that in the SD JPA docs, the pointcut above is wrong. It starts with "org.sfw...", which is clearly an abbreviation and should probably be changed to "org.springframework..." so as not confuse copy-and-pasters.
Am I missing something or could logging in SD JPA be improved? It seems to me that logging should not require changes to my Spring application context configuration. It kind of dorks with my source control, etc.
Thanks,
Matthew


Reply With Quote
