日志输出为:
2019-09-03 10:39:47.144 [http-nio-exec-14] INFO com.frame.web.ssssss.www.controller.aaact.ControllerLogAspect - [7de244ba55024731111f5e9ff911111a6]返回参数 :
{"code":"200","success":true,"remark":"","id":"","time":"2019-09-03 10:39:47","message":"","addition":"","object":{}}
返回参数会自动换行,我写的gork正则表达式为
(?<requesttime>[0-9\-]+\s+[0-9\:]+[\.0-9]+) \[(?<none1>[^\]].+)\] INFO (?<none2>.+) - \[(?<UUID>[^]]+)\](?<info>.+)
就是不知道怎样匹配下一行的日志
2019-09-03 10:39:47.144 [http-nio-exec-14] INFO com.frame.web.ssssss.www.controller.aaact.ControllerLogAspect - [7de244ba55024731111f5e9ff911111a6]返回参数 :
{"code":"200","success":true,"remark":"","id":"","time":"2019-09-03 10:39:47","message":"","addition":"","object":{}}
返回参数会自动换行,我写的gork正则表达式为
(?<requesttime>[0-9\-]+\s+[0-9\:]+[\.0-9]+) \[(?<none1>[^\]].+)\] INFO (?<none2>.+) - \[(?<UUID>[^]]+)\](?<info>.+)
就是不知道怎样匹配下一行的日志
0 个回复