Class ShoulderOpLogFormatter
java.lang.Object
org.shoulder.log.operation.format.impl.ShoulderOpLogFormatter
- All Implemented Interfaces:
OperationLogFormatter
默认日志格式化(逗号分隔的键值对)
key1:"v1",k2:"v2"
- Author:
- lym
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat(OperationLogDTO opLog) 格式化static StringformatParam(String operation, OpLogParam param)
-
Constructor Details
-
ShoulderOpLogFormatter
public ShoulderOpLogFormatter()
-
-
Method Details
-
formatParam
- Parameters:
operation- 操作标识param- 参数
-
format
Description copied from interface:OperationLogFormatter格式化- Specified by:
formatin interfaceOperationLogFormatter- Parameters:
opLog- 待打印的日志- Returns:
- 格式化后的 string
-