Class LogOperationLogger
java.lang.Object
org.shoulder.log.operation.logger.AbstractOperationLogger
org.shoulder.log.operation.logger.impl.LogOperationLogger
- All Implemented Interfaces:
OperationLogger
以日志文件记录操作日志,并以
OperationLogFormatter 作为日志格式。后续可由日志采集器收集、处理、转发至日志中心。
注意:使用前需要保证 logback.xml 中 loggerName 对应的日志记录器存在。
- Author:
- lym
-
Constructor Summary
ConstructorsConstructorDescriptionLogOperationLogger(OperationLogFormatter operationLogFormatter) LogOperationLogger(OperationLogFormatter operationLogFormatter, String loggerName) -
Method Summary
Methods inherited from class org.shoulder.log.operation.logger.AbstractOperationLogger
addInterceptor, handleLogException, log, log, logMethods 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.OperationLogger
addInterceptor, log, log, log, log
-
Constructor Details
-
LogOperationLogger
-
LogOperationLogger
-
-
Method Details
-
doLog
Description copied from class:AbstractOperationLogger子类需要实现具体如何记录日志- Specified by:
doLogin classAbstractOperationLogger- Parameters:
opLog- 需要记录日志的实体
-