-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from minseok1015/update_gradle
Update gradle
- Loading branch information
Showing
4 changed files
with
66 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 35 additions & 35 deletions
70
src/main/java/store/itpick/backend/support/logging/LoggingAspect.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
//package store.itpick.backend.support.logging; | ||
// | ||
//import lombok.extern.slf4j.Slf4j; | ||
//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.springframework.stereotype.Component; | ||
// | ||
//@Slf4j | ||
//@Component | ||
//@Aspect | ||
//public class LoggingAspect { | ||
// | ||
// @Pointcut("execution(public * kuit3.backend..*(..))) " + | ||
// "&& !execution(public * kuit3.backend.support.logging..*(..))") | ||
// private void allComponents() {} | ||
// | ||
// @Pointcut("execution(public * kuit3.backend.controller..*(..))") | ||
// private void allController() {} | ||
// | ||
// @Pointcut("execution(public * kuit3.backend.service..*(..))") | ||
// private void allService() {} | ||
// | ||
// @Pointcut("execution(public * kuit3.backend.common.argument_resolver..*(..))") | ||
// private void allArgumentResolver() {} | ||
// | ||
// @Pointcut("execution(public * kuit3.backend.common.interceptor..*(..))") | ||
// private void allInterceptor() {} | ||
// | ||
// @Before("allComponents()") | ||
// public void doLog(JoinPoint joinPoint) { | ||
// log.info("[{}]", joinPoint.getSignature().toShortString()); | ||
// } | ||
//} | ||
package store.itpick.backend.support.logging; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
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.springframework.stereotype.Component; | ||
|
||
@Slf4j | ||
@Component | ||
@Aspect | ||
public class LoggingAspect { | ||
|
||
@Pointcut("execution(public * store.itpick.backend..*(..))) " + | ||
"&& !execution(public * kuit3.backend.support.logging..*(..))") | ||
private void allComponents() {} | ||
|
||
@Pointcut("execution(public * store.itpick.backend.controller..*(..))") | ||
private void allController() {} | ||
|
||
@Pointcut("execution(public * store.itpick.backend.service..*(..))") | ||
private void allService() {} | ||
|
||
@Pointcut("execution(public * store.itpick.backend.common.argument_resolver..*(..))") | ||
private void allArgumentResolver() {} | ||
|
||
@Pointcut("execution(public * store.itpick.backend.common.interceptor..*(..))") | ||
private void allInterceptor() {} | ||
|
||
@Before("allComponents()") | ||
public void doLog(JoinPoint joinPoint) { | ||
log.info("[{}]", joinPoint.getSignature().toShortString()); | ||
} | ||
} |