Uses of Interface
org.shoulder.log.operation.logger.OperationLogger
Packages that use OperationLogger
Package
Description
-
Uses of OperationLogger in org.shoulder.log.operation.context
Methods in org.shoulder.log.operation.context with parameters of type OperationLoggerModifier and TypeMethodDescriptionstatic voidOpLogContextHolder.setOperationLogger(OperationLogger opLogger) -
Uses of OperationLogger in org.shoulder.log.operation.logger
Classes in org.shoulder.log.operation.logger that implement OperationLoggerModifier and TypeClassDescriptionclass基础操作日志记录,封装了记录前后触发逻辑 记录前先校验,若日志不符合自己的规范要求则不记录这条操作日志,并在运行日志中记录为什么不合规 -
Uses of OperationLogger in org.shoulder.log.operation.logger.impl
Classes in org.shoulder.log.operation.logger.impl that implement OperationLoggerModifier and TypeClassDescriptionclass异步操作日志记录器 仅仅把任务放入线程池class带缓冲的操作日志记录器(针对频繁记录单条操作日志做优化,批量操作不优化) 将日志放入 buffer 中,当 buffer 中日志达到一定数量 / 每隔一定时间,执行一次批量保存class以 jdbc 记录操作日志记录,直接保存至数据库。适合微小型项目中,日志中心与业务组件同数据库。class以日志文件记录操作日志,并以OperationLogFormatter作为日志格式。后续可由日志采集器收集、处理、转发至日志中心。class关掉操作日志Methods in org.shoulder.log.operation.logger.impl that return OperationLoggerModifier and TypeMethodDescriptionAsyncOperationLogger.getDelegate()BufferedOperationLogger.getDelegate()Methods in org.shoulder.log.operation.logger.impl with parameters of type OperationLoggerConstructors in org.shoulder.log.operation.logger.impl with parameters of type OperationLoggerModifierConstructorDescriptionBufferedOperationLogger(Queue<OperationLogDTO> logBuffer, OperationLogger delegate, ScheduledExecutorService scheduledExecutorService, long flushInterval, int flushThreshold, int perFlushMax)