@Component public class LogClient extends Object
| 构造器和说明 |
|---|
LogClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
logAttributes(String objectName,
Integer objectId,
String operator,
String operationName,
String operationAlias,
String extraWords,
String comment,
List<BaseAttributeModel> baseAttributeModelList)
Write log with items
|
void |
logObject(Integer objectId,
String operator,
String operationName,
String operationAlias,
String extraWords,
String comment,
Object oldObject,
Object newObject)
Auto diff old/new object and write one log
Attention: the attributes be diffed must with @LogTag
|
public void logObject(Integer objectId, String operator, String operationName, String operationAlias, String extraWords, String comment, Object oldObject, Object newObject)
objectId - requiredoperator - requiredoperationName - operationNameoperationAlias - operation alias for displayextraWords - extra description for operationcomment - comment for operationoldObject - required,the object before operationnewObject - required,the object after operationpublic void logAttributes(String objectName, Integer objectId, String operator, String operationName, String operationAlias, String extraWords, String comment, List<BaseAttributeModel> baseAttributeModelList)
objectName - required,the object aliasobjectId - required,the object idoperator - requiredoperationName - operationNameoperationAlias - operation alias for displayextraWords - extra description for operationcomment - comment for operationbaseAttributeModelList - attributes list:
required: attributeType,attribute,attributeName
optional: oldValue,newValue,diffValueCopyright © 2019. All rights reserved.