Uses of Class
org.shoulder.log.operation.model.OperationLogDTO
Packages that use OperationLogDTO
Package
Description
-
Uses of OperationLogDTO in org.shoulder.log.operation.context
Methods in org.shoulder.log.operation.context that return OperationLogDTOModifier and TypeMethodDescriptionstatic OperationLogDTO创建一条操作日志 1.static OperationLogDTOOpLogContextHolder.getLog()获取日志实体Methods in org.shoulder.log.operation.context that return types with arguments of type OperationLogDTOModifier and TypeMethodDescriptionstatic List<OperationLogDTO> OperationLogFactory.createFromTemplate(OperationLogDTO operationLogTemplate, Collection<? extends Operable> operableList) 1.Methods in org.shoulder.log.operation.context with parameters of type OperationLogDTOModifier and TypeMethodDescriptionstatic List<OperationLogDTO> OperationLogFactory.createFromTemplate(OperationLogDTO operationLogTemplate, Collection<? extends Operable> operableList) 1.OpLogContext.Builder.operationLog(OperationLogDTO operationLog) static voidOpLogContextHolder.setLog(OperationLogDTO entity) 设置日志实体 -
Uses of OperationLogDTO in org.shoulder.log.operation.format
Methods in org.shoulder.log.operation.format with parameters of type OperationLogDTOModifier and TypeMethodDescriptionOperationLogParamValueConverter.convert(OperationLogDTO opLog, Object paramValue, Class<?> methodParamClazz) 转换日志参数值OperationLogFormatter.format(OperationLogDTO opLog) 格式化 -
Uses of OperationLogDTO in org.shoulder.log.operation.format.covertor
Methods in org.shoulder.log.operation.format.covertor with parameters of type OperationLogDTO -
Uses of OperationLogDTO in org.shoulder.log.operation.format.impl
Methods in org.shoulder.log.operation.format.impl with parameters of type OperationLogDTOModifier and TypeMethodDescriptionJsonOperationLogFormatter.format(OperationLogDTO opLog) ShoulderOpLogFormatter.format(OperationLogDTO opLog) -
Uses of OperationLogDTO in org.shoulder.log.operation.logger
Methods in org.shoulder.log.operation.logger that return types with arguments of type OperationLogDTOModifier and TypeMethodDescriptiondefault List<? extends OperationLogDTO> OperationLoggerInterceptor.afterAssembleBatchLogs(List<? extends OperationLogDTO> opLogs) 可以在日志组装前后做一些事情 —— 批量操作日志组装之后 可以在这里对批量操作日志对象进行最终的处理Methods in org.shoulder.log.operation.logger with parameters of type OperationLogDTOModifier and TypeMethodDescriptiondefault voidOperationLoggerInterceptor.afterLog(OperationLogDTO opLog) 记录日后。 如果 beforeLog 设置类某些线程变量,可以在这里完成清理工作。OperationLoggerInterceptor.beforeAssembleBatchLogs(OperationLogDTO template, List<? extends Operable> operableList) 可以在日志组装前后做一些事情 —— 批量操作日志组装之前 可以在这里对操作对象集合进行压缩、填充或者剔除default voidOperationLoggerInterceptor.beforeLog(OperationLogDTO opLog) 在记录日志之前。 可以继续针对自己的应用统一补充某些有规律的值 可以进行一些格式校验,以免记录的日志某些字段超长(加入存储是关系型数据库则推荐使用)protected abstract voidAbstractOperationLogger.doLog(OperationLogDTO opLog) 子类需要实现具体如何记录日志protected voidAbstractOperationLogger.handleLogException(Exception e, OperationLogDTO opLog) 默认记录一条warn日志,但子类可以覆盖当记录日志时出现异常如何处理voidAbstractOperationLogger.log(OperationLogDTO opLog) 记录一条操作日志voidAbstractOperationLogger.log(OperationLogDTO opLog, List<? extends Operable> operableList) 拼装循环记录多条操作日志voidOperationLogger.log(OperationLogDTO opLog) 记录一条操作日志voidOperationLogger.log(OperationLogDTO opLog, List<? extends Operable> operableList) 组装并记录多条操作日志Method parameters in org.shoulder.log.operation.logger with type arguments of type OperationLogDTOModifier and TypeMethodDescriptiondefault List<? extends OperationLogDTO> OperationLoggerInterceptor.afterAssembleBatchLogs(List<? extends OperationLogDTO> opLogs) 可以在日志组装前后做一些事情 —— 批量操作日志组装之后 可以在这里对批量操作日志对象进行最终的处理voidAbstractOperationLogger.log(Collection<? extends OperationLogDTO> opLogList) 记录多条操作日志 【性能】默认单条循环,扩展时可考虑覆盖默认实现,支持真正的批量操作 【扩展】自行实现时,也可自己定义批量记录前后置处理器voidOperationLogger.log(Collection<? extends OperationLogDTO> opLogList) 记录多条操作日志 -
Uses of OperationLogDTO in org.shoulder.log.operation.logger.impl
Methods in org.shoulder.log.operation.logger.impl with parameters of type OperationLogDTOModifier and TypeMethodDescriptionprotected voidJdbcOperationLogger.doLog(OperationLogDTO opLog) protected voidLogOperationLogger.doLog(OperationLogDTO opLog) voidAsyncOperationLogger.log(OperationLogDTO opLog) 记录一条操作日志voidAsyncOperationLogger.log(OperationLogDTO opLog, List<? extends Operable> operableList) voidBufferedOperationLogger.log(OperationLogDTO opLog) 记录一条操作日志voidBufferedOperationLogger.log(OperationLogDTO opLog, List<? extends Operable> operableList) voidNoOpOperationLogger.log(OperationLogDTO opLog) voidNoOpOperationLogger.log(OperationLogDTO opLog, List<? extends Operable> operableList) Method parameters in org.shoulder.log.operation.logger.impl with type arguments of type OperationLogDTOModifier and TypeMethodDescriptionvoidAsyncOperationLogger.log(Collection<? extends OperationLogDTO> opLogList) 记录多条操作日志voidBufferedOperationLogger.log(Collection<? extends OperationLogDTO> opLogList) 记录多条操作日志voidJdbcOperationLogger.log(Collection<? extends OperationLogDTO> opLogList) voidNoOpOperationLogger.log(Collection<? extends OperationLogDTO> opLogList) Constructor parameters in org.shoulder.log.operation.logger.impl with type arguments of type OperationLogDTOModifierConstructorDescriptionBufferedOperationLogger(Queue<OperationLogDTO> logBuffer, OperationLogger delegate, ScheduledExecutorService scheduledExecutorService, long flushInterval, int flushThreshold, int perFlushMax) -
Uses of OperationLogDTO in org.shoulder.log.operation.logger.intercept
Methods in org.shoulder.log.operation.logger.intercept with parameters of type OperationLogDTOModifier and TypeMethodDescriptionvoidOpLogValidateInterceptor.beforeLog(OperationLogDTO opLog) voidUserAgentParserInterceptor.beforeLog(OperationLogDTO opLog) voidOperationLogValidator.validate(OperationLogDTO log) 校验失败将抛出 RuntimeExceptionvoidShoulderOperationLogValidator.validate(OperationLogDTO log) 校验失败将抛出 runtimeExceptionprotected voidShoulderOperationLogValidator.validateLengthLimit(OperationLogDTO log) 字段长度校验protected voidShoulderOperationLogValidator.validateRequiredFields(OperationLogDTO log) 必填项校验 供使用者填写的优先校验 -
Uses of OperationLogDTO in org.shoulder.log.operation.model
Methods in org.shoulder.log.operation.model that return OperationLogDTOModifier and TypeMethodDescriptionOperationLogDTO.addDetailItem(String detailItem) OperationLogDTO.clone()OperationLogDTO.cloneTo(OperationLogDTO clone) 克隆日志实体OperationLogDTO.setExtField(String extKey, Object value) put Field to extends has orderOperationLogDTO.setOperableObject(Operable operable) 填充单个被操作对象信息OperationLogDTO.setOperator(Operator operator) 填充操作者信息OperationLogDTO.setResultFail()Methods in org.shoulder.log.operation.model with parameters of type OperationLogDTO