package com.eactive.eai.rms.common.logging;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class EntityServiceLoggingAspect {

	@Pointcut("execution (* com.eactive.eai.data.jpa.AbstractDataService+.*(..))")
	public void executionEntityServicePointcut() {

	}

	@Before("executionEntityServicePointcut()")
	public void entityService(JoinPoint joinPoint) {
//		Logger logger = LoggerFactory.getLogger(joinPoint.getSignature().getDeclaringType());
//		if (logger.isDebugEnabled()) {
//			logger.debug("{}", joinPoint.getSignature().toShortString());
//		}
	}

}
