2

I am trying to use Jamon in my spring app to but i don't see any messages here's my context.xml definitions for jamon .

<bean id="jamonMonitoringAspectInterceptor" class="org.springframework.aop.interceptor.JamonPerformanceMonitorInterceptor">
    <property name="loggerName" value="JamonLogger"/>
    <property name="trackAllInvocations" value="true"></property>
    <property name="useDynamicLogger" value="true"></property>
</bean>

<aop:config>
        <aop:pointcut id="jamonMonitoringPointcut"
                    expression="execution(* com.myorg.somepack.networkapi.websocket.WebSocketService.*(..))"/>

            <aop:advisor pointcut-ref="jamonMonitoringPointcut" 
                    advice-ref="jamonMonitoringAspectInterceptor"/>
</aop:config>

I don't get any exception and everything is working fine but I don't see jamon working.

Alban
  • 1,915
  • 1
  • 14
  • 17
urag
  • 1,228
  • 9
  • 28

1 Answers1

0

Specify either loggerName or useDynamicLogger flag, but not both in your jamonMonitoringAspectInterceptor bean. See javadoc here.

Also verify that the logger level is set to TRACE and jamonapi dependency is included in your project.

TMan
  • 422
  • 1
  • 3
  • 13