我想使用拦截器来过滤一个日志文件(事件文件),这个日志文件包含整个系统的日志,我只想过滤日志行(事件行) com.threesixone.analytic.service.ActionLogAspect,只想得到日志行的json部分,
任何人都可以帮助我使用拦截器的正则表达式,我很难理解要过滤的模式。
以下是一个日志行的示例:
2015-11-04 11:09:30,383 INFO : com.threesixone.analytic.service.ActionLogAspect - {"page":"PRODUCT_LIST","controller":"ProductController","product":{"productID":10004,"category":"321","sportCategories":["32"],"name":"Men pullover","gender":"Men","sport":"Running","retailPrice":239.0,"sellPrice":239.0,"sellQuantity":0,"taxablePrice":0.0,"origin":"361° Sports","stockQuantity":1000,"subTotal":0.0},"browser":"Chrome-43.0.2357.130","action":"VIEW","timestamp":1446610170382,"customerType":"GUEST","sessionId":"1et7dn6qbbfui1xszk627pz0p9"}