package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Oct 19, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package audit 审计日志:对敏感操作留结构化审计痕迹,与业务日志分离。
字段值统一经 logredact 打码——审计载荷常含平台 token、连接串、Bearer 头。
Logger 审计日志器。
New 创建审计日志器。service 用于日志前缀(如 "argus-audit")。
log 为 nil 时回退到 logx.NewAuditLogger(v0.5.1 起门面级承诺:级别锁 Info、
不受 LOG_LEVEL 降级、SetLevel 调到 WARN/ERROR 被拒、With* 派生保持守卫)——
审计留痕不随业务日志级别配置丢失。
Log 记录一条审计事件(nil receiver 安全)。字符串字段值经 logredact.Redact 打码。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.