Comments (4)
暂没有思路支持这个,因为方法参数,入参出参是基于AOP实现的,没有对方法内的分布式调用做拦截。
from aop-log.
LogData 没有序列化,直接转json报错。
还有获取参数列表的时候,org.apache.catalina.connector.RequestFacade@18b8f282,这个也不能转字符串
from aop-log.
是你的参数本身不支持序列化吧,LogData本身也不实现序列化的,入参出参皆为Object是为了兼容各种复杂对象。我的观点是复杂对象的处理的方式应该交由使用者自己在收集器中怎么去决定,所以没有对复杂的,不支持序列化的对象进行处理。
from aop-log.
谢谢!
public static Object getArgs(String[] parameterNames, Object[] args) {
Object target;
if (args.length == 1) target = args[0];
else target = args;
不看代码外面通过object接受时候不知道是数组,看完源码后,转了数组,用自己的对象来拷贝属性,目前好使了。
from aop-log.
Related Issues (17)
- 目前的master可以发布一个2.5版本吗? HOT 4
- [bug]异步模式下,方法抛出异常后日志不打印 HOT 2
- Before the method HOT 2
- 解决No thread-bound request found: Are you referring to request attributes outside of an actual web request HOT 4
- Bug提交 HOT 2
- 优化建议 HOT 1
- 希望LogData.step支持模板和参数列表 HOT 2
- LogData对象里面args对象自动toString HOT 3
- log.info(objectMapper.writeValueAsString(logData)) 报错 HOT 3
- 怎样获取logData中的Header对象内容 HOT 2
- objectMapper.writeValueAsString(o)报错It is illegal to call this method if the current request is not in asynchronous mode HOT 1
- 业务层中使用了LogData.step(),并在末尾执行LogData.removeCurrent(),收集器里的LogData.getCostTime() == 0 HOT 2
- 获取IP的过程非常耗时 HOT 3
- 多层调用有bug HOT 2
- 日志输出 HOT 1
- 代码中有误,默认为NothingCollector,全局Collector是无效的
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aop-log.