Interface AuditLogger

All Known Implementing Classes:
FileAuditLogger

public interface AuditLogger
Audit Logger Interface 审计日志接口

Interface for logging feature audit events.

用于记录功能审计事件的接口。

Features | 主要功能:

  • Audit event logging - 审计事件记录
  • Change tracking - 变更跟踪
  • Compliance support - 合规支持

Usage Examples | 使用示例:

AuditLogger logger = new FileAuditLogger(logPath);
logger.log(new FeatureAuditEvent(
    "feature-key", "admin", "ENABLE", false, true, Instant.now()
));

Security | 安全性:

  • Thread-safe: Implementation-dependent - 线程安全: 取决于实现
  • Null-safe: No - 空值安全: 否
Since:
JDK 25, opencode-base-feature V1.0.0
Author:
Leon Soo www.LeonSoo.com
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Log an audit event 记录审计事件
  • Method Details

    • log

      void log(FeatureAuditEvent event)
      Log an audit event 记录审计事件
      Parameters:
      event - the audit event | 审计事件