Component,并进行 Bean 的自动注册LogMethodBefore
LogMethodAfter
LogMethodAround
LogUnMonitor
使用例子:Controller 的信息,配置前缀LogMethodAfterLogMethodAroundLogMethodBeforeMDC 上下文中的信息MDC 上下文中@org.springframework.web.bind.annotation.ExceptionHandler
排除方法上有@Scheduled注解,Spring Task定时任务:
@org.springframework.scheduling.annotation.Scheduled
排除方法、类上有@LogUnMonitor注解,自定义Log注解:
@app.myoss.cloud.apm.log.method.aspectj.annotation.LogUnMonitor
排除方法、类上有@LogMethodAround注解,自定义Log注解:
@app.myoss.cloud.apm.log.method.aspectj.annotation.LogMethodAround
@org.springframework.web.bind.annotation.ExceptionHandler
排除方法上有@Scheduled注解,Spring Task定时任务:
@org.springframework.scheduling.annotation.Scheduled
排除方法、类上有@LogUnMonitor注解,自定义Log注解:
@app.myoss.cloud.apm.log.method.aspectj.annotation.LogUnMonitor
@org.springframework.web.bind.annotation.ExceptionHandler
排除方法上有@Scheduled注解,Spring Task定时任务:
@org.springframework.scheduling.annotation.Scheduled
排除方法、类上有@LogUnMonitor注解,自定义Log注解:
@app.myoss.cloud.apm.log.method.aspectj.annotation.LogUnMonitor
排除方法、类上有@LogMethodAround注解,自定义Log注解:
@app.myoss.cloud.apm.log.method.aspectj.annotation.LogMethodAround
@app.myoss.cloud.apm.log.method.aspectj.annotation.LogMethodAfter
@app.myoss.cloud.apm.log.method.aspectj.annotation.LogMethodAround
@app.myoss.cloud.apm.log.method.aspectj.annotation.LogMethodBefore
Copyright © 2018–2020. All rights reserved.