Annotation Type OperationLogParam
操作日志参数注解
将该注解加在带
OperationLog 的方法上,
如果参数值为 null 则默认不在日志输出该参数,如需输出,参见 OperationLogProperties
若将参数中的大对象标记为记录,且使用默认的参数解析方式(展平,类似json),容易造成解析后的字符串较长
- Author:
- lym
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<? extends OperationLogParamValueConverter> 值转换器的实现类参数名称,默认取变量名, 如 public void test(@OperationLogParam String foo),则 name 默认为 'foo'boolean参数是否支持多语言,默认为不支持多语言以该值,作为 value。支持 SPEL
-
Element Details
-
supportI18n
boolean supportI18n参数是否支持多语言,默认为不支持多语言- Default:
false
-
name
String name参数名称,默认取变量名, 如 public void test(@OperationLogParam String foo),则 name 默认为 'foo'- Default:
""
-
value
String value以该值,作为 value。支持 SPEL举例:参数为 user,需要记录是否为 admin 则使用 function(@OperationLogParam(value = "#user.role") User user)
- Default:
""
-
converter
Class<? extends OperationLogParamValueConverter> converter值转换器的实现类注意!值转换器的实现类需要注入在 spring 容器内。若 value() 有值则以 value 为准。
- Default:
org.shoulder.log.operation.format.covertor.DefaultOperationLogParamValueConverter.class
-