log-record
log-record copied to clipboard
使用注解优雅记录系统日志,操作日志,后端埋点等,支持SpEL表达式,自定义上下文,自定义函数,实体类DIFF等其他高阶处理。
1. diff 时,oldObj 和 obj 必须都要加 @LogRecordDiffObject 注解,否则 diff 内容为空。我觉得这个注解可以不加,主要只用 @LogRecordDiffField 的 alias。或者没有都加 @LogRecordDiffObject 的时候报错提醒下。 2. diff 时,oldObj 和 obj 的字段都得写 @LogRecordDiffField(alias = "用户名"),结果才会有中文,否则就是字段名,我觉得其中一个加就行了,根据字段名来判断。
目前`createLog`方法中`LogDTO.exception`获取的仅为`e.getMessage()`,而我想获取的是`e.printStackTrace()`的内容。 大多项目都会有一个全局异常处理。 `GlobalExceptionHandler`: ```java /** * 全局异常处理 */ @Slf4j @ControllerAdvice public class GlobalExceptionHandler { @ExceptionHandler(value = Exception.class) @ResponseBody public ApiResponse handlerException(Exception e) { StringWriter sw = new StringWriter(); PrintWriter pw...
diff函数内,我看作者大大在msg输出时是直接调用 old/newValue.toString()。请问能否支持通过注解别名优化一下输出。 例子:【列表A】从【[TestDiffJob(jobId=22, jobName=222, dutyList=[TestDiffDuty(dutyId=222, dutyName=222)])]】 改为 【列表A】从【[实体A(编号=22, 名字=222, 列表A=[实体B(编号=222, 名=222)])]】 原输出虽然开发人员能够明白,但对于业务人员的查看并不友好 以上效果虽然可以直接通过覆写toString实现,但不算是一个太好的方案,容易干扰用到toString的相关代码。
Bumps spring-cloud-stream from 3.0.7.RELEASE to 4.0.2. [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...
Bumps [spring-boot-starter-parent](https://github.com/spring-projects/spring-boot) from 2.5.1 to 3.0.5. Release notes Sourced from spring-boot-starter-parent's releases. v3.0.5 :lady_beetle: Bug Fixes EmbeddedWebServerFactoryCustomizerAutoConfiguration should not run when embedded web server is not configured #34659 StandardConfigDataResource can...
Bumps [fastjson](https://github.com/alibaba/fastjson2) from 1.2.83 to 2.0.26. Release notes Sourced from fastjson's releases. fastjson 2.0.26发布 这次的发布是为dubbo 3.2.0发布准备,修复dubbo社区反馈的bug,dubbo 3.2.0会将默认序列化协议从hessian切换到fastjson2的二进制协议jsonb。 最近从fastjson 1.x升级的用户快速增加,这次的发布修复了一些大家升级发现的兼容问题和BUG。 性能测试报告 fastjson2每次发布前都会跑一次性能测试。fastjson 2.0.26的性能测试的硬件环境增加了Orange Pi 5 和Apple M1 Pro,JDK则增加graalvm ce和graalvm ee。 测试报告:https://github.com/alibaba/fastjson2/wiki/fastjson_benchmark...
Bumps [javassist](https://github.com/jboss-javassist/javassist) from 3.28.0-GA to 3.29.2-GA. Release notes Sourced from javassist's releases. Javassist 3.29.2-GA This release is a maintenance update. It includes a fix for GitHub Issue jboss-javassist/javassist#427. Javassist 3.29.1-GA...
Bumps [rocketmq-client](https://github.com/apache/rocketmq) from 4.9.2 to 5.1.0. Release notes Sourced from rocketmq-client's releases. release 5.1.0 What's Changed [ISSUE #5069] polish the startup of proxy; can specify parameters on the command line...
Bumps [maven-javadoc-plugin](https://github.com/apache/maven-javadoc-plugin) from 2.9.1 to 3.5.0. Release notes Sourced from maven-javadoc-plugin's releases. 3.5.0 Release Notes Clean up language and update URLs (#172) @elharo Assorted minor FAQ edits (#176) @elharo [MJAVADOC-738]...
Bumps commons-text from 1.9 to 1.10.0. [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...