Interface OperationLogValidator

All Known Implementing Classes:
ShoulderOperationLogValidator

public interface OperationLogValidator
日志校验器,若日志格式有一定要求则可以添加校验器。 如希望存储到 db 时,对字段长度有要求,因此需要校验 希望自定义系统中的日志格式,但担心开发者不按照规范走可以进行校验,如某些字段需要以特定前后缀结尾等
Author:
lym
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    校验失败将抛出 RuntimeException
  • Method Details

    • validate

      void validate(OperationLogDTO log)
      校验失败将抛出 RuntimeException
      Parameters:
      log - 操作日志