发布于 2022-06-17 17:36:41
您不需要额外的配置,只需使用日志提供程序的适当重载方法即可,例如
public void exceptionsCatcher(JoinPoint joinPoint, RuntimeException e) {
...
log.error("exception : {} " + " some message description perhaps {}",
e.getLocalizedMessage(), e.getMessage(), e);
...
}第三个标记将接收到stack-trace属性的堆栈跟踪,在这里中查找更多有关其他重载方法的信息。
https://stackoverflow.com/questions/72660153
复制相似问题