Interface OperationLogFormatter

All Known Implementing Classes:
JsonOperationLogFormatter, ShoulderOpLogFormatter

public interface OperationLogFormatter
操作日志格式化 不同的系统中希望的日志格式不一,有的希望是逗号分隔的键值对(如 nginx 默认日志格式),也有的人希望是 json 格式 可以通过扩展该接口来修改输出格式
Author:
lym
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    格式化
  • Method Details

    • format

      String format(OperationLogDTO opLog)
      格式化
      Parameters:
      opLog - 待打印的日志
      Returns:
      格式化后的 string