Class UserAgentParserInterceptor
java.lang.Object
org.shoulder.log.operation.logger.intercept.UserAgentParserInterceptor
- All Implemented Interfaces:
OperationLoggerInterceptor
根据 terminal info 解析日志格式
- Author:
- lym
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeLog(OperationLogDTO opLog) 在记录日志之前。 可以继续针对自己的应用统一补充某些有规律的值 可以进行一些格式校验,以免记录的日志某些字段超长(加入存储是关系型数据库则推荐使用)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.shoulder.log.operation.logger.OperationLoggerInterceptor
afterAssembleBatchLogs, afterLog, beforeAssembleBatchLogs
-
Constructor Details
-
UserAgentParserInterceptor
public UserAgentParserInterceptor()
-
-
Method Details
-
beforeLog
Description copied from interface:OperationLoggerInterceptor在记录日志之前。 可以继续针对自己的应用统一补充某些有规律的值 可以进行一些格式校验,以免记录的日志某些字段超长(加入存储是关系型数据库则推荐使用)- Specified by:
beforeLogin interfaceOperationLoggerInterceptor- Parameters:
opLog- 待验证的日志实体
-