class

KemalWAF::AuditLogger

Inherits Reference / Object

Audit logger - kritik olaylar için ayrı log

Constants

Log = ::Log.for("audit_logger")

Constructors

new(log_dir : String, base_name : String, max_size_mb : Int32, retention_days : Int32, queue_size : Int32 = 10000, batch_size : Int32 = 100, flush_interval_ms : Int32 = 1000)
Source

Instance methods

log_block(request : HTTP::Request, rule : Rule, result : EvaluationResult, request_id : String | Nil = nil)

Block edilen istek loglama (non-blocking)

Source
log_config_change(action : String, details : String, user : String | Nil = nil)

Konfigürasyon değişikliği loglama (non-blocking)

Source
log_security_event(event_type : String, details : String, request_id : String | Nil = nil)

Güvenlik olayı loglama (non-blocking)

Source
shutdown

Graceful shutdown - queue'daki tüm log'ları yaz

Source