java拦截器日志处理_java – Spring:标准日志方面(拦截器)

是的有!

查看CustomizableTraceInterceptor API,您可以使用多个占位符定义单独的进入/退出/异常消息:

$[methodName] – replaced with the name of the method being invoked

$[targetClassName] – replaced with the name of the class that is the target of the invocation

$[targetClassShortName] – replaced with the short name of the class that is the target of the invocation

$[returnValue] – replaced with the value returned by the invocation

$[argumentTypes] – replaced with a comma-separated list of the short class names of the method arguments

$[arguments] – replaced with a comma-separated list of the String representation of the method arguments

$[exception] – replaced with the String representation of any Throwable raised during the invocation

$[invocationTime] – replaced with the time, in milliseconds, taken by the method invocation

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值