package org.springframework.samples.petclinic.aspects;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

/**
 * Aspect to illustrate Spring-driven load-time weaving.
 *
 * @author Ramnivas Laddad
 * @since 2.5
 */
@Aspect
public abstract class AbstractTraceAspect {

	protected final Log logger = LogFactory.getLog(getClass());
	
	@Pointcut
	public abstract void traced();
	
	@Before("traced()")
	public void trace(JoinPoint.StaticPart jpsp) {
		if (logger.isDebugEnabled()) {
			logger.debug("Entering " + jpsp.getSignature().toLongString());
		}
	}

}

@@ -470,15 +470,20 @@
 %0A%09pr
-otected
+ivate static
  fin
@@ -520,18 +520,33 @@
 Log(
-getC
+AbstractTraceAspect.c
 lass
-()
 );%0A%09
@@ -679,13 +679,13 @@
 r.is
-Debug
+Trace
 Enab
@@ -707,13 +707,13 @@
 ger.
-debug
+trace
 (%22En

use trace log level